[gtk/wip/otte/dnd: 13/22] drop: Guard variable with correct compiler flags



commit e3aee62b18691be75581d327dea4e714343473d0
Author: Benjamin Otte <otte redhat com>
Date:   Sat Feb 22 06:53:16 2020 +0100

    drop: Guard variable with correct compiler flags

 gdk/gdkdrop.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gdk/gdkdrop.c b/gdk/gdkdrop.c
index b491eebfdb..fd4169a29b 100644
--- a/gdk/gdkdrop.c
+++ b/gdk/gdkdrop.c
@@ -561,7 +561,9 @@ void
 gdk_drop_status (GdkDrop       *self,
                  GdkDragAction  actions)
 {
+#ifndef G_DISABLE_CHECKS
   GdkDropPrivate *priv = gdk_drop_get_instance_private (self);
+#endif
 
   g_return_if_fail (GDK_IS_DROP (self));
   g_return_if_fail (priv->state != GDK_DROP_STATE_FINISHED);


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