diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bb4690b179..2e254189f5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,7 +22,7 @@ stages: # Common variables variables: - COMMON_MESON_FLAGS: "-Dwerror=true -Dglib:werror=false -Dpango:werror=false -Dgtk-doc:werror=false -Dwayland-protocols:werror=false -Dsysprof:werror=false -Dwayland:werror=false" + COMMON_MESON_FLAGS: "-Dwerror=true -Dcairo:werror=false -Dgi-docgen:werror=false -Dgraphene:werror=false -Dlibepoxy:werror=false -Dlibsass:werror=false -Dpango:werror=false -Dsassc:werror=false -Dgdk-pixbuf:werror=false -Dglib:werror=false -Dlibcloudproviders:werror=false -Dlibpng:werror=false -Dlibtiff:werror=false -Dsysprof:werror=false -Dwayland-protocols:werror=false -Dharfbuzz:werror=false -Dfreetype2:werror=false -Dfontconfig:werror=false -Dfribidi:werror=false -Dlibffi:werror=false -Dlibjpeg-turbo:werror=false -Dmutest:werror=false -Dpixman:werror=false -Dproxy-libintl:werror=false" BACKEND_FLAGS: "-Dx11-backend=true -Dwayland-backend=true -Dbroadway-backend=true" FEATURE_FLAGS: "-Dvulkan=enabled -Dcloudproviders=enabled" MESON_TEST_TIMEOUT_MULTIPLIER: 3 diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c index 040b9cce1a..599b946de9 100644 --- a/gdk/gdkglcontext.c +++ b/gdk/gdkglcontext.c @@ -504,8 +504,8 @@ gdk_gl_context_real_is_shared (GdkGLContext *self, static gboolean gdk_gl_context_real_clear_current (GdkGLContext *context) { - GdkDisplay *display = gdk_gl_context_get_display (context); #ifdef HAVE_EGL + GdkDisplay *display = gdk_gl_context_get_display (context); GdkGLContextPrivate *priv = gdk_gl_context_get_instance_private (context); if (priv->egl_context == NULL) diff --git a/meson.build b/meson.build index 4282f2701c..e1d4653884 100644 --- a/meson.build +++ b/meson.build @@ -271,6 +271,7 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang' '-Wno-c++11-extensions', '-Wno-missing-include-dirs', '-Wno-typedef-redefinition', + '-Wno-tautological-constant-out-of-range-compare', '-Wduplicated-branches', '-Wduplicated-cond', '-Wformat=2', diff --git a/tools/gtk-launch.c b/tools/gtk-launch.c index 3ed73dde0f..04f103771c 100644 --- a/tools/gtk-launch.c +++ b/tools/gtk-launch.c @@ -49,8 +49,10 @@ main (int argc, char *argv[]) GOptionContext *context = NULL; char *summary; char *app_name; -#ifdef G_OS_UNIX +#if defined(HAVE_GIO_UNIX) && !defined(__APPLE__) char *desktop_file_name; +#endif +#ifdef G_OS_UNIX char *bus_name = NULL; #endif GAppInfo *info = NULL; @@ -132,7 +134,6 @@ main (int argc, char *argv[]) info = G_APP_INFO (g_desktop_app_info_new (desktop_file_name)); g_free (desktop_file_name); #else -#warning Please add support for creating AppInfo from id for your OS g_printerr (_("Creating AppInfo from id not supported on non unix operating systems")); #endif args++;