]> Pileus Git - ~andy/gtk/commitdiff
cups: Fix unused variable warning when not using colord
authorBenjamin Otte <otte@redhat.com>
Fri, 10 Jun 2011 13:00:39 +0000 (15:00 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 10 Jun 2011 13:01:04 +0000 (15:01 +0200)
modules/printbackends/cups/gtkprintercups.c

index 3ed44ae41de8c33d79fad297ba9cb33b980e660f..09b5bfd916ac167798b5cb2afb7c91dc3a04a0c5 100644 (file)
@@ -179,7 +179,9 @@ gtk_printer_cups_get_property (GObject    *object,
                                GValue     *value,
                                GParamSpec *pspec)
 {
+#ifdef HAVE_COLORD
   GtkPrinterCups *printer = GTK_PRINTER_CUPS (object);
+#endif
 
   switch (prop_id)
     {