diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-03-20 19:55:57 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-03-22 00:33:29 +0000 |
commit | f7a97a7ab0d196c9a771107f57cb550d9eec7233 (patch) | |
tree | 5f2f51dfb50d659cb6c57bf79033aa54159b8b9e | |
parent | 58117a0c3e9c29f7244531f6520e973c03d24ed4 (diff) |
test: simple-xinit: add _X_NORETURN
fix warning:
> ../test/simple-xinit.c:58:1: warning: function 'usage' could be declared with attribute 'noreturn' [-Wmissing-noreturn]
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1429>
-rw-r--r-- | test/meson.build | 1 | ||||
-rw-r--r-- | test/simple-xinit.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/test/meson.build b/test/meson.build index afa08abb2..79e1a11aa 100644 --- a/test/meson.build +++ b/test/meson.build @@ -2,6 +2,7 @@ simple_xinit = executable( 'simple-xinit', 'simple-xinit.c', include_directories: inc, + dependencies: [ xproto_dep ], ) piglit_env = environment() diff --git a/test/simple-xinit.c b/test/simple-xinit.c index e85b48092..57e7eed57 100644 --- a/test/simple-xinit.c +++ b/test/simple-xinit.c @@ -25,6 +25,8 @@ #include <dix-config.h> #endif +#include <X11/Xfuncproto.h> + #include <errno.h> #include <signal.h> #include <stdbool.h> @@ -53,7 +55,7 @@ kill_server(int server_pid) } } -static void +_X_NORETURN static void usage(int argc, char **argv) { fprintf(stderr, "%s <client command> -- <server command>\n", argv[0]); |