[gtk/wip/matthiasc/popup5: 143/151] Avoid compiler warnings



commit 5ccb081fdb63cb806259f517670246874b9bb442
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon May 27 16:26:19 2019 +0000

    Avoid compiler warnings
    
    Avoid priv being flagged as unused on win32.

 gtk/gtkwindow.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 0d422f6414..5cb64664d8 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -9555,7 +9555,8 @@ gtk_window_export_handle (GtkWindow               *window,
     }
 #endif
 
-  g_warning ("Couldn't export handle, unsupported windowing system");
+  g_warning ("Couldn't export handle for %s surface, unsupported windowing system",
+             G_OBJECT_TYPE_NAME (priv->surface));
 
   return FALSE;
 }
@@ -9569,8 +9570,12 @@ gtk_window_unexport_handle (GtkWindow *window)
   if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (GTK_WIDGET (window))))
     {
       gdk_wayland_surface_unexport_handle (priv->surface);
+      return;
     }
 #endif
+
+  g_warning ("Couldn't unexport handle for %s surface, unsupported windowing system",
+             G_OBJECT_TYPE_NAME (priv->surface));
 }
 
 static void


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