From: Timm Bäder Date: Sat, 21 Apr 2018 17:18:20 +0000 (+0200) Subject: Always use #ifdef for G_ENABLE_DEBUG X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~437 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5b453ecd19081d82d3d3db2cf12c5f92eaecf41e;p=gtk4.git Always use #ifdef for G_ENABLE_DEBUG Release builds don't define it to 0, they just don't define it. Avoid the compilation warning we get otherwise. --- diff --git a/gdk/x11/gdkdevice-xi2.c b/gdk/x11/gdkdevice-xi2.c index 81f1f19b29..746991c63c 100644 --- a/gdk/x11/gdkdevice-xi2.c +++ b/gdk/x11/gdkdevice-xi2.c @@ -449,7 +449,7 @@ gdk_x11_device_xi2_grab (GdkDevice *device, event_mask, &mask.mask_len); -#if G_ENABLE_DEBUG +#ifdef G_ENABLE_DEBUG if (GDK_DISPLAY_DEBUG_CHECK (display, NOGRABS)) status = GrabSuccess; else diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c index dc18c1faa2..accb204779 100644 --- a/gtk/gtkbuilder.c +++ b/gtk/gtkbuilder.c @@ -810,7 +810,7 @@ _gtk_builder_construct (GtkBuilder *builder, else g_object_set_property (obj, name, value); -#if G_ENABLE_DEBUG +#ifdef G_ENABLE_DEBUG if (GTK_DEBUG_CHECK (BUILDER)) { gchar *str = g_strdup_value_contents (value); @@ -874,7 +874,7 @@ _gtk_builder_apply_properties (GtkBuilder *builder, else g_object_set_property (info->object, name, value); -#if G_ENABLE_DEBUG +#ifdef G_ENABLE_DEBUG if (GTK_DEBUG_CHECK (BUILDER)) { gchar *str = g_strdup_value_contents (value);