[gtk/matthiasc/css-change-tracking-4: 2/11] Quiet compiler warnings in release builds



commit df9cb1d4b48aef85bb186b1117460d1f62f935e0
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jan 16 19:43:05 2020 -0500

    Quiet compiler warnings in release builds

 gtk/gtkwidget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index d87f996b1b..4fd0c3a63b 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -12234,8 +12234,8 @@ static inline void
 gtk_widget_maybe_add_debug_render_nodes (GtkWidget   *widget,
                                          GtkSnapshot *snapshot)
 {
-  GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
 #ifdef G_ENABLE_DEBUG
+  GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
   GdkDisplay *display = _gtk_widget_get_display (widget);
 
   if (GTK_DISPLAY_DEBUG_CHECK (display, BASELINES))


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