mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Lambros provides this workaround for a compiler warning on his
Ubuntu system. I'm inclined to think the real problem is in his gtk headers, but this is a harmless enough change to avoid hassle. [originally from svn r8181]
This commit is contained in:
3
gtk.c
3
gtk.c
@ -1764,11 +1764,12 @@ static frontend *new_window(char *arg, int argtype, char **error)
|
|||||||
gdk_colormap_alloc_colors(fe->colmap, fe->colours, ncolours,
|
gdk_colormap_alloc_colors(fe->colmap, fe->colours, ncolours,
|
||||||
FALSE, FALSE, success);
|
FALSE, FALSE, success);
|
||||||
for (i = 0; i < ncolours; i++) {
|
for (i = 0; i < ncolours; i++) {
|
||||||
if (!success[i])
|
if (!success[i]) {
|
||||||
g_error("couldn't allocate colour %d (#%02x%02x%02x)\n",
|
g_error("couldn't allocate colour %d (#%02x%02x%02x)\n",
|
||||||
i, fe->colours[i].red >> 8,
|
i, fe->colours[i].red >> 8,
|
||||||
fe->colours[i].green >> 8,
|
fe->colours[i].green >> 8,
|
||||||
fe->colours[i].blue >> 8);
|
fe->colours[i].blue >> 8);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user