diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-29 11:37:24 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-29 11:46:25 -0700 |
commit | 6f0f20dc0cefe96209f57099a92f7c6ace7cc5fd (patch) | |
tree | 403d7384592bae56e67e9252866334d46f5289ea | |
parent | 815c95d612b6f71dc4651c976b894d9a8f1fa15d (diff) |
Mark usage() as _X_COLD _X_NORETURN
Suggested by clang:
xcompmgr.c:1963:1: warning: function 'usage' could be declared with
attribute 'noreturn' [-Wmissing-noreturn]
{
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | xcompmgr.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 14320e9..bdc22a1 100644 --- a/configure.ac +++ b/configure.ac @@ -17,7 +17,8 @@ m4_ifndef([XORG_MACROS_VERSION], XORG_MACROS_VERSION(1.8) XORG_DEFAULT_OPTIONS -PKG_CHECK_MODULES(XCOMPMGR, xcomposite xfixes xdamage xrender xext) +PKG_CHECK_MODULES(XCOMPMGR, + [xcomposite xfixes xdamage xrender xext xproto >= 7.0.25]) AC_CONFIG_FILES([ Makefile @@ -1958,7 +1958,7 @@ ev_window (XEvent *ev) } #endif -static void +static void _X_COLD _X_NORETURN usage (const char *program) { fprintf (stderr, "%s v%s\n", program, PACKAGE_VERSION); |