mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-30 12:15:50 +01:00
Remove warnings
* Remove assigned but not used variables (GCC 4.6) * Bump _XOPEN_SOURCE to 600, ridding of FreeBSD warnings (this probably need to be tweaked on a per-implementation basis as problems arise)
This commit is contained in:
committed by
Carlos R. Mafra
parent
43c7abe79f
commit
f65b99e615
@@ -330,7 +330,7 @@ static void paintMenuEntry(PopUpButton * bPtr, int index, int highlight)
|
||||
{
|
||||
W_Screen *scr = bPtr->view->screen;
|
||||
int yo;
|
||||
int width, height, itemHeight, itemCount;
|
||||
int width, itemHeight, itemCount;
|
||||
char *title;
|
||||
|
||||
itemCount = WMGetArrayItemCount(bPtr->items);
|
||||
@@ -339,7 +339,6 @@ static void paintMenuEntry(PopUpButton * bPtr, int index, int highlight)
|
||||
|
||||
itemHeight = bPtr->view->size.height;
|
||||
width = bPtr->view->size.width;
|
||||
height = itemHeight * itemCount;
|
||||
yo = (itemHeight - WMFontHeight(scr->normalFont)) / 2;
|
||||
|
||||
if (!highlight) {
|
||||
|
||||
Reference in New Issue
Block a user