mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +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
@@ -26,6 +26,7 @@
|
||||
#include <X11/Xutil.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <unistd.h>
|
||||
#include <math.h>
|
||||
#include <limits.h>
|
||||
@@ -2262,10 +2263,9 @@ Bool wDockSnapIcon(WDock * dock, WAppIcon * icon, int req_x, int req_y, int *ret
|
||||
int i, offset = ICON_SIZE / 2;
|
||||
WAppIcon *aicon = NULL;
|
||||
WAppIcon *nicon = NULL;
|
||||
int max_y_icons, max_x_icons;
|
||||
int max_y_icons;
|
||||
|
||||
/* TODO: XINERAMA, for these */
|
||||
max_x_icons = scr->scr_width / ICON_SIZE;
|
||||
max_y_icons = scr->scr_height / ICON_SIZE - 1;
|
||||
|
||||
if (wPreferences.flags.noupdates)
|
||||
|
||||
Reference in New Issue
Block a user