summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJosé Expósito <jose.exposito89@gmail.com>2024-03-18 16:24:11 +0100
committerMarge Bot <emma+marge@anholt.net>2024-03-18 23:35:34 +0000
commitf6a1f264df3abd5a59bfea0a5a3cfa5e846279aa (patch)
treea09c64e68979eec7c6923fdaa1d47272cf436f0e /tools
parent74f69dc9a0dbbabe761f65daec07fc7b23911fa0 (diff)
sparse: make some variables static
Fix warnings about variables that should be made static when compiling with Sparse enabled: $ CC=cgcc meson builddir Signed-off-by: José Expósito <jose.exposito89@gmail.com> Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/987>
Diffstat (limited to 'tools')
-rw-r--r--tools/libinput-debug-gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libinput-debug-gui.c b/tools/libinput-debug-gui.c
index a1300c64..4618f49d 100644
--- a/tools/libinput-debug-gui.c
+++ b/tools/libinput-debug-gui.c
@@ -238,7 +238,7 @@ wayland_registry_global_remove(void *data,
}
-struct wl_registry_listener registry_listener = {
+static struct wl_registry_listener registry_listener = {
wayland_registry_global,
wayland_registry_global_remove
};