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.
This commit is contained in:
Timm Bäder 2018-04-21 19:18:20 +02:00
parent 9b8ff8d6c3
commit 5b453ecd19
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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);