Silent warnings about unused functions when lcms is not used.
authorLaurent Monin <geeqie@norz.org>
Thu, 28 Aug 2008 10:50:02 +0000 (10:50 +0000)
committerLaurent Monin <geeqie@norz.org>
Thu, 28 Aug 2008 10:50:02 +0000 (10:50 +0000)
src/layout.c

index 5e607f5..6d20acd 100644 (file)
@@ -314,6 +314,8 @@ static GtkWidget *layout_sort_button(LayoutWindow *lw)
  *-----------------------------------------------------------------------------
  */
 
+#ifdef HAVE_LCMS
+
 static void layout_color_menu_enable_cb(GtkWidget *widget, gpointer data)
 {
        LayoutWindow *lw = data;
@@ -376,6 +378,8 @@ static gchar *layout_color_name_parse(const gchar *name)
        return g_strdelimit(g_strdup(name), "_", '-');
 }
 
+#endif /* HAVE_LCMS */
+
 static void layout_color_button_press_cb(GtkWidget *widget, gpointer data)
 {
 #ifndef HAVE_LCMS