[gtk/matthiasc/for-master-2: 9/16] treestore: Silence compiler warnings



commit 955305a034a9a322245b014a6eff8d2135e26b2f
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 4 22:45:29 2020 +0100

    treestore: Silence compiler warnings
    
    This was causing compiler warnings in release builds.

 gtk/gtktreestore.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c
index 20d5dafbca..18f352db81 100644
--- a/gtk/gtktreestore.c
+++ b/gtk/gtktreestore.c
@@ -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
  *


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