treestore: Silence compiler warnings
authorMatthias Clasen <mclasen@redhat.com>
Tue, 4 Feb 2020 21:45:29 +0000 (22:45 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 5 Feb 2020 06:01:47 +0000 (01:01 -0500)
This was causing compiler warnings in release builds.

gtk/gtktreestore.c

index 20d5dafbca74007eec09e321e0dc05d229d85a1b..18f352db815c41d5b75b7af21e87c395c9085e84 100644 (file)
@@ -184,8 +184,6 @@ static void     gtk_tree_store_buildable_custom_finished  (GtkBuildable       *b
                                                            const gchar        *tagname,
                                                            gpointer            user_data);
 
-static void     validate_gnode                         (GNode *node);
-
 static void     gtk_tree_store_move                    (GtkTreeStore           *tree_store,
                                                         GtkTreeIter            *iter,
                                                         GtkTreeIter            *position,
@@ -193,6 +191,8 @@ static void     gtk_tree_store_move                    (GtkTreeStore           *
 
 
 #ifdef G_ENABLE_DEBUG
+static void     validate_gnode                         (GNode *node);
+
 static inline void
 validate_tree (GtkTreeStore *tree_store)
 {
@@ -3297,6 +3297,7 @@ gtk_tree_store_has_default_sort_func (GtkTreeSortable *sortable)
   return (tree_store->priv->default_sort_func != NULL);
 }
 
+#ifdef G_ENABLE_DEBUG
 static void
 validate_gnode (GNode* node)
 {
@@ -3312,6 +3313,7 @@ validate_gnode (GNode* node)
       iter = iter->next;
     }
 }
+#endif
 
 /* GtkBuildable custom tag implementation
  *