From 5b21f9be2be43aeea2c52a15c269490b4786faa4 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Mon, 6 May 2024 22:03:56 +0200 Subject: [PATCH] avoid warning on unused variables --- tui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.30.2