[gtk/ci-gtk3-update: 17/20] Fix build when G_ENABLE_DEBUG is undefined



commit c08908b48869bc7ea0370415642e363f5c187b2b
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Mar 13 15:51:12 2020 +0000

    Fix build when G_ENABLE_DEBUG is undefined

 gdk/wayland/gdkdevice-wayland.c | 4 +++-
 gdk/wayland/gdkscreen-wayland.c | 2 ++
 gtk/gtktreestore.c              | 6 ++++--
 3 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 4773f63ffa..3d6e4400c8 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -3671,8 +3671,10 @@ tablet_tool_handle_proximity_out (void                      *data,
 {
   GdkWaylandTabletToolData *tool = data;
   GdkWaylandTabletData *tablet = tool->current_tablet;
-  GdkWaylandSeat *seat = GDK_WAYLAND_SEAT (tool->seat);
   GdkEvent *event;
+#ifdef G_ENABLE_DEBUG
+  GdkWaylandSeat *seat = GDK_WAYLAND_SEAT (tool->seat);
+#endif
 
   GDK_NOTE (EVENTS,
             g_message ("proximity out, seat %p, tool %d", seat,
diff --git a/gdk/wayland/gdkscreen-wayland.c b/gdk/wayland/gdkscreen-wayland.c
index 76049c39b7..cb60d3a0fd 100644
--- a/gdk/wayland/gdkscreen-wayland.c
+++ b/gdk/wayland/gdkscreen-wayland.c
@@ -1539,10 +1539,12 @@ xdg_output_handle_description (void                  *data,
                                struct zxdg_output_v1 *xdg_output,
                                const char            *description)
 {
+#ifdef G_ENABLE_DEBUG
   GdkWaylandMonitor *monitor = (GdkWaylandMonitor *) data;
 
   GDK_NOTE (MISC,
             g_message ("handle description xdg-output %d", monitor->id));
+#endif
 }
 
 static const struct zxdg_output_v1_listener xdg_output_listener = {
diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c
index 5cab98ba77..ad4a8a7e31 100644
--- a/gtk/gtktreestore.c
+++ b/gtk/gtktreestore.c
@@ -184,8 +184,6 @@ static void     gtk_tree_store_buildable_custom_finished (GtkBuildable       *builda
                                                          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)
 {
@@ -3313,6 +3313,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)
 {
@@ -3328,6 +3329,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]