mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-04 21:04:18 +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
@@ -4,6 +4,8 @@
|
||||
#define _GNU_SOURCE /* getopt_long */
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <getopt.h>
|
||||
#include <limits.h>
|
||||
@@ -12,6 +14,10 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_STDNORETURN
|
||||
#include <stdnoreturn.h>
|
||||
#endif
|
||||
|
||||
#include <WINGs/WUtil.h>
|
||||
|
||||
#include "../src/wconfig.h"
|
||||
@@ -477,7 +483,7 @@ static void other_window_managers(void)
|
||||
WMAddToPLArray(RMenu, L1Menu);
|
||||
}
|
||||
|
||||
void print_help(int print_usage, int exitval)
|
||||
noreturn void print_help(int print_usage, int exitval)
|
||||
{
|
||||
printf("Usage: %s [-h] [-v]\n", __progname);
|
||||
if (print_usage) {
|
||||
|
||||
Reference in New Issue
Block a user