[Spice-devel] [PATCH spice-gtk] widget-egl: Define label only if can be used

Pavel Grunt pgrunt at redhat.com
Fri Apr 1 16:48:05 UTC 2016


The label can be used only with GDK_WINDOWING_WAYLAND

Silence -Wunused-label
---
 src/spice-widget-egl.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/spice-widget-egl.c b/src/spice-widget-egl.c
index 51bb5c5..c54d9f6 100644
--- a/src/spice-widget-egl.c
+++ b/src/spice-widget-egl.c
@@ -266,7 +266,10 @@ gboolean spice_egl_init(SpiceDisplay *display, GError **err)
     eglMakeCurrent(d->egl.display, EGL_NO_SURFACE, EGL_NO_SURFACE,
                    d->egl.ctx);
 
+#ifdef GDK_WINDOWING_WAYLAND
 end:
+#endif
+
     if (!spice_egl_init_shaders(display, err))
         return FALSE;
 
-- 
2.8.0



More information about the Spice-devel mailing list