From 38c72bc8abf651cbc0ebffcc0d0da10d0bcaf7a5 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 26 Sep 2023 17:32:10 -0700 Subject: Handle clang -Wmissing-noreturn warning xmore.c:137:1: warning: function 'usage' could be declared with attribute 'noreturn' [-Wmissing-noreturn] Signed-off-by: Alan Coopersmith --- configure.ac | 2 +- xmore.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 822bb7c..9d2a3be 100644 --- a/configure.ac +++ b/configure.ac @@ -38,7 +38,7 @@ AC_CONFIG_HEADERS([config.h]) # Checks for pkg-config packages -PKG_CHECK_MODULES(XMORE, xaw7) +PKG_CHECK_MODULES(XMORE, [xaw7 xproto >= 7.0.25]) PKG_CHECK_MODULES(APPDEFS, xt) xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` diff --git a/xmore.c b/xmore.c index f2f00c4..7d508ed 100644 --- a/xmore.c +++ b/xmore.c @@ -132,6 +132,7 @@ quitXtProc(Widget w, XtPointer client_data, XtPointer callData) XtCallActionProc(w, "quit", NULL, NULL, 0); } +_X_NORETURN _X_COLD static void usage(FILE *out, int exitval) { -- cgit v1.2.3