mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 05:18:06 +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
@@ -427,7 +427,6 @@ static void paintGradListItem(WMList * lPtr, int index, Drawable d, char *text,
|
||||
WMColor *white = WMWhiteColor(scr);
|
||||
WMColor *black = WMBlackColor(scr);
|
||||
WMColor *gray = WMGrayColor(scr);
|
||||
WMListItem *item;
|
||||
int width, height, x, y;
|
||||
Display *dpy;
|
||||
|
||||
@@ -443,8 +442,6 @@ static void paintGradListItem(WMList * lPtr, int index, Drawable d, char *text,
|
||||
else
|
||||
XFillRectangle(dpy, d, WMColorGC(gray), x, y, width, height);
|
||||
|
||||
item = WMGetListItem(lPtr, index);
|
||||
|
||||
if (panel->gimage) {
|
||||
XCopyArea(WMScreenDisplay(scr), panel->gimage, d, WMColorGC(white),
|
||||
0, height * index, 30, height, x + 5, y);
|
||||
|
||||
Reference in New Issue
Block a user