chiark / gitweb /
Lambros provides this workaround for a compiler warning on his
authorSimon Tatham <anakin@pobox.com>
Sun, 14 Sep 2008 08:52:59 +0000 (08:52 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 14 Sep 2008 08:52:59 +0000 (08:52 +0000)
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]

gtk.c

diff --git a/gtk.c b/gtk.c
index aa410aeaf05430691a5b1d2536dd8f11ec173e79..fc99f92898402d745ae5db7bda51224a43b56441 100644 (file)
--- 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);
+            }
         }
     }