mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 14:42:29 +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
@@ -625,7 +625,7 @@ void wIconUpdate(WIcon * icon)
|
||||
int x, y;
|
||||
unsigned int w, h;
|
||||
Window jw;
|
||||
int ji, dotitle;
|
||||
int ji;
|
||||
unsigned int ju, d;
|
||||
Pixmap pixmap;
|
||||
|
||||
@@ -646,7 +646,6 @@ void wIconUpdate(WIcon * icon)
|
||||
|
||||
if (icon->show_title && (title_height < wPreferences.icon_size)) {
|
||||
drawIconTitle(scr, pixmap, title_height);
|
||||
dotitle = 1;
|
||||
|
||||
if (h > wPreferences.icon_size - title_height - 2) {
|
||||
h = wPreferences.icon_size - title_height - 2;
|
||||
@@ -655,7 +654,6 @@ void wIconUpdate(WIcon * icon)
|
||||
y = (wPreferences.icon_size - h - title_height) / 2 + title_height + 1;
|
||||
}
|
||||
} else {
|
||||
dotitle = 0;
|
||||
if (w > wPreferences.icon_size)
|
||||
w = wPreferences.icon_size;
|
||||
y = (wPreferences.icon_size - h) / 2;
|
||||
|
||||
Reference in New Issue
Block a user