From: Laurent Mazet Date: Mon, 6 May 2024 20:03:56 +0000 (+0200) Subject: avoid warning on unused variables X-Git-Tag: cmore-1.0~25 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=5b21f9be2be43aeea2c52a15c269490b4786faa4;p=cmore.git avoid warning on unused variables --- diff --git a/tui.c b/tui.c index 7265218..c83211c 100644 --- a/tui.c +++ b/tui.c @@ -137,7 +137,7 @@ static void colorbox(WINDOW *win, chtype color, int hasbox) { int maxy; #ifndef PDCURSES - int maxx; + int __attribute__((unused)) maxx; #endif chtype attr = color & A_ATTR; /* extract Bold, Reverse, Blink bits */ @@ -372,7 +372,7 @@ int bodylen(void) #ifdef PDCURSES return getmaxy(wbody); #else - int maxy, maxx; + int maxy, __attribute__((unused)) maxx; getmaxyx(wbody, maxy, maxx); return maxy; @@ -588,7 +588,7 @@ void startmenu(menu *mp, char *mtitle, FUNC init) static void repainteditbox(WINDOW *win, int x, char *buf) { #ifndef PDCURSES - int maxy; + int __attribute__((unused)) maxy; #endif int maxx;