[gtk/ci-jobs: 15/19] Declare global counter only in debug builds



commit 40046fb2deaa247d2015b6434f03e469d1efab4c
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Jan 29 14:02:16 2020 +0100

    Declare global counter only in debug builds

 gdk/gdkdrawcontext.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gdk/gdkdrawcontext.c b/gdk/gdkdrawcontext.c
index 5822ed7eb2..06bb351570 100644
--- a/gdk/gdkdrawcontext.c
+++ b/gdk/gdkdrawcontext.c
@@ -175,7 +175,9 @@ gdk_draw_context_class_init (GdkDrawContextClass *klass)
   g_object_class_install_properties (gobject_class, LAST_PROP, pspecs);
 }
 
+#ifdef G_ENABLE_DEBUG
 static guint pixels_counter;
+#endif
 
 static void
 gdk_draw_context_init (GdkDrawContext *self)


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