[gimp] modules: silence defined but not used warning in color-selector-water.c



commit 48582d4d6a47082ff4379b90d922af7000b7f318
Author: Michael Natterer <mitch gimp org>
Date:   Mon Nov 4 22:09:57 2013 +0100

    modules: silence defined but not used warning in color-selector-water.c
    
    by uselessly calling colorsel_water_get_type().

 modules/color-selector-water.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/modules/color-selector-water.c b/modules/color-selector-water.c
index ecc304c..2589d41 100644
--- a/modules/color-selector-water.c
+++ b/modules/color-selector-water.c
@@ -134,6 +134,8 @@ colorsel_water_init (ColorselWater *water)
   GtkAdjustment *adj;
   GtkWidget     *scale;
 
+  colorsel_water_get_type (); /* useless function call to silence compiler */
+
   water->pressure_adjust = 1.0;
 
   hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);


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