mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-08 02:28:59 +00:00
www.c: added #ifdef WITH_PETSCII guards to avoid compiler warning on unused variable wptr
This commit is contained in:
parent
f49b161795
commit
343326abee
@ -842,7 +842,9 @@ add_pagewidget(char *text, unsigned char size, char *attrib, unsigned char type,
|
|||||||
void
|
void
|
||||||
htmlparser_newline(void)
|
htmlparser_newline(void)
|
||||||
{
|
{
|
||||||
|
#ifdef WITH_PETSCII
|
||||||
char *wptr;
|
char *wptr;
|
||||||
|
#endif /* WITH_PETSCII */
|
||||||
|
|
||||||
if(++newlines > 2) {
|
if(++newlines > 2) {
|
||||||
return;
|
return;
|
||||||
@ -862,9 +864,10 @@ htmlparser_newline(void)
|
|||||||
++y;
|
++y;
|
||||||
x = 0;
|
x = 0;
|
||||||
|
|
||||||
|
#ifdef WITH_PETSCII
|
||||||
wptr = webpageptr - WWW_CONF_WEBPAGE_WIDTH;
|
wptr = webpageptr - WWW_CONF_WEBPAGE_WIDTH;
|
||||||
petsciiconv_topetscii(wptr, WWW_CONF_WEBPAGE_WIDTH);
|
petsciiconv_topetscii(wptr, WWW_CONF_WEBPAGE_WIDTH);
|
||||||
(void)wptr;
|
#endif /* WITH_PETSCII */
|
||||||
|
|
||||||
if(y == WWW_CONF_WEBPAGE_HEIGHT) {
|
if(y == WWW_CONF_WEBPAGE_HEIGHT) {
|
||||||
loading = 0;
|
loading = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user