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>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-03-20 19:55:57 +01:00 committed by Marge Bot
parent 58117a0c3e
commit f7a97a7ab0
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@ simple_xinit = executable(
'simple-xinit',
'simple-xinit.c',
include_directories: inc,
dependencies: [ xproto_dep ],
)
piglit_env = environment()

View File

@ -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]);