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



commit 3a9308c491f9dd7fa3cfd669b611bcba8d68ff86
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]