mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-06 22:04:12 +01:00
util: Added noreturn attribute to appropriate functions
clang is a bit more strict on the attribute usage, so let's comply. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
7491f5479b
commit
f8b6871371
@@ -23,6 +23,8 @@
|
||||
#define _GNU_SOURCE /* getopt_long */
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <getopt.h>
|
||||
@@ -34,6 +36,10 @@
|
||||
#include <unistd.h>
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
#ifdef HAVE_STDNORETURN
|
||||
#include <stdnoreturn.h>
|
||||
#endif
|
||||
|
||||
#include <WINGs/WUtil.h>
|
||||
|
||||
#include "../src/wconfig.h"
|
||||
@@ -350,7 +356,7 @@ static void hackStyle(WMPropList * style)
|
||||
}
|
||||
}
|
||||
|
||||
static void print_help(int print_usage, int exitval)
|
||||
static noreturn void print_help(int print_usage, int exitval)
|
||||
{
|
||||
printf("Usage: %s [OPTIONS] FILE\n", __progname);
|
||||
if (print_usage) {
|
||||
|
||||
Reference in New Issue
Block a user