aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2008-09-14 08:52:59 +0000
committerSimon Tatham <anakin@pobox.com>2008-09-14 08:52:59 +0000
commitba2a002c02b9b9463908fc79b61f550fc6b572d5 (patch)
tree2b54d230f59773361f4a98a18258cb7d679208e1
parent0819e8ec76ecf1e484cbf5c4f7605a84c8b15dab (diff)
downloadpuzzles-ba2a002c02b9b9463908fc79b61f550fc6b572d5.zip
puzzles-ba2a002c02b9b9463908fc79b61f550fc6b572d5.tar.gz
puzzles-ba2a002c02b9b9463908fc79b61f550fc6b572d5.tar.bz2
puzzles-ba2a002c02b9b9463908fc79b61f550fc6b572d5.tar.xz
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]
-rw-r--r--gtk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk.c b/gtk.c
index aa410ae..fc99f92 100644
--- a/gtk.c
+++ b/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,
FALSE, FALSE, success);
for (i = 0; i < ncolours; i++) {
- if (!success[i])
+ if (!success[i]) {
g_error("couldn't allocate colour %d (#%02x%02x%02x)\n",
i, fe->colours[i].red >> 8,
fe->colours[i].green >> 8,
fe->colours[i].blue >> 8);
+ }
}
}