From e9a1999a7f84521ce91cdb19d9ed8a8adea0b0a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Date: Sun, 9 Oct 2022 20:07:59 +0200 Subject: [PATCH] meson.build: always set HAVE_GTK_WAYLAND MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In commit 6a1bd5b0c9be ("meson.build: check gtk targets before building") introduced a custom config option to check whether Wayland is supported by GTK or not. However, in some cases the config option is not set generating this warning: ../tools/libinput-debug-gui.c:51:5: warning: "HAVE_GTK_WAYLAND" is not defined, evaluates to 0 [-Wundef] 51 | #if HAVE_GTK_WAYLAND | ^~~~~~~~~~~~~~~~ Make sure to always set HAVE_GTK_WAYLAND. Signed-off-by: José Expósito --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 43a124b8..625bdc0c 100644 --- a/meson.build +++ b/meson.build @@ -551,6 +551,7 @@ if get_option('debug-gui') dep_wayland_protocols = dependency('wayland-protocols', required : false) config_h.set10('HAVE_GTK_X11', have_gtk_x11 and dep_x11.found()) + config_h.set10('HAVE_GTK_WAYLAND', false) debug_gui_sources = [ 'tools/libinput-debug-gui.c' ]