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
|
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…
Add table
Reference in a new issue