www.c: added #ifdef WITH_PETSCII guards to avoid compiler warning on unused variable wptr
This commit is contained in:
parent
f49b161795
commit
343326abee
1 changed files with 4 additions and 1 deletions
|
@ -842,7 +842,9 @@ add_pagewidget(char *text, unsigned char size, char *attrib, unsigned char type,
|
|||
void
|
||||
htmlparser_newline(void)
|
||||
{
|
||||
#ifdef WITH_PETSCII
|
||||
char *wptr;
|
||||
#endif /* WITH_PETSCII */
|
||||
|
||||
if(++newlines > 2) {
|
||||
return;
|
||||
|
@ -862,9 +864,10 @@ htmlparser_newline(void)
|
|||
++y;
|
||||
x = 0;
|
||||
|
||||
#ifdef WITH_PETSCII
|
||||
wptr = webpageptr - WWW_CONF_WEBPAGE_WIDTH;
|
||||
petsciiconv_topetscii(wptr, WWW_CONF_WEBPAGE_WIDTH);
|
||||
(void)wptr;
|
||||
#endif /* WITH_PETSCII */
|
||||
|
||||
if(y == WWW_CONF_WEBPAGE_HEIGHT) {
|
||||
loading = 0;
|
||||
|
|
Loading…
Reference in a new issue