[gtk+] cups: Fix unused variable warning when not using colord



commit 0bfb663d0cb2f5d8ffa004308e164e2d060715a1
Author: Benjamin Otte <otte redhat com>
Date:   Fri Jun 10 15:00:39 2011 +0200

    cups: Fix unused variable warning when not using colord

 modules/printbackends/cups/gtkprintercups.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/modules/printbackends/cups/gtkprintercups.c b/modules/printbackends/cups/gtkprintercups.c
index 3ed44ae..09b5bfd 100644
--- a/modules/printbackends/cups/gtkprintercups.c
+++ b/modules/printbackends/cups/gtkprintercups.c
@@ -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)
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]