From 9e38750da16c6e5bd8bb26b00d74041ddf9be3e8 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 2 Aug 2013 22:22:09 -0700 Subject: Add noreturn attributes suggested by gcc Remove extra bogus return added to avoid warnings when calling Punt() since gcc didn't know it would never return. Signed-off-by: Alan Coopersmith --- sxpm/sxpm.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sxpm') diff --git a/sxpm/sxpm.c b/sxpm/sxpm.c index a5eaa32..87860c0 100644 --- a/sxpm/sxpm.c +++ b/sxpm/sxpm.c @@ -109,9 +109,9 @@ static char *plaid[] = { #define xrdb XtDatabase(dpy) static Colormap colormap; -void Usage(void); +void Usage(void) _X_NORETURN; void ErrorMessage(int ErrorStatus, const char *tag); -void Punt(int i); +void Punt(int i) _X_NORETURN; void VersionInfo(void); void kinput(Widget widget, char *tag, XEvent *xe, Boolean *b); void GetNumbers(int num, int *format_return, @@ -569,9 +569,6 @@ main( XtMainLoop(); } Punt(0); - - /* Muffle gcc */ - return 0; } void -- cgit v1.2.3