wmmenu: Fix -Wunused-value compiler warnings.

This commit is contained in:
Doug Torrance 2015-01-24 12:05:42 -06:00 committed by Carlos R. Mafra
parent 93bb8f6267
commit 28ea752c44
2 changed files with 6 additions and 0 deletions

View file

@ -130,6 +130,8 @@ extern void ButtonBar_SetPositionFromDockApp (int dockx, int docky,
int xMid, scrWidth, h, scrHeight ; int xMid, scrWidth, h, scrHeight ;
int x, y ; int x, y ;
(void) dockh;
/* compute y */ /* compute y */
scrHeight = DisplayHeight (DADisplay, DefaultScreen (DADisplay)) ; scrHeight = DisplayHeight (DADisplay, DefaultScreen (DADisplay)) ;
y = docky ; y = docky ;

View file

@ -148,6 +148,10 @@ static void InvokeBar (int x, int y)
static void PressApp (int button, int state, int x, int y) static void PressApp (int button, int state, int x, int y)
{ {
(void) button;
(void) state;
(void) x;
(void) y;
if (BarShown) LeaveBar () ; if (BarShown) LeaveBar () ;
else EnterApp () ; else EnterApp () ;
} }