[gtk] Quiet a compiler warning



commit 3182063ffe0afee24e6cc09f2f8880ca6274a443
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jan 16 12:17:49 2020 -0500

    Quiet a compiler warning
    
    This was causing warnings in a release build.

 gtk/gtkwidget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 9138c5a379..d87f996b1b 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -12235,6 +12235,7 @@ gtk_widget_maybe_add_debug_render_nodes (GtkWidget   *widget,
                                          GtkSnapshot *snapshot)
 {
   GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
+#ifdef G_ENABLE_DEBUG
   GdkDisplay *display = _gtk_widget_get_display (widget);
 
   if (GTK_DISPLAY_DEBUG_CHECK (display, BASELINES))
@@ -12255,7 +12256,6 @@ gtk_widget_maybe_add_debug_render_nodes (GtkWidget   *widget,
         }
     }
 
-#ifdef G_ENABLE_DEBUG
   if (GTK_DISPLAY_DEBUG_CHECK (display, RESIZE) && priv->highlight_resize)
     {
       GdkRGBA blue = {0, 0, 1, 0.2};


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