Soft'N'Design Software
/
projects
/
cmore.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53cd5b2
)
avoid warning on unused variables
author
Laurent Mazet
<mazet@softndesign.org>
Mon, 6 May 2024 20:03:56 +0000
(22:03 +0200)
committer
Laurent Mazet
<mazet@softndesign.org>
Mon, 6 May 2024 20:03:56 +0000
(22:03 +0200)
tui.c
patch
|
blob
|
blame
|
history
diff --git
a/tui.c
b/tui.c
index 7265218cf507cdd268c8bfc97cc477f5bddaa8b6..c83211cead8cab9f7b70faf31b87ff78b5318973 100644
(file)
--- 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;