1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-29 09:52:29 +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:
Christophe CURIS
2013-11-15 18:46:42 +01:00
committed by Carlos R. Mafra
parent 7491f5479b
commit f8b6871371
9 changed files with 61 additions and 12 deletions

View File

@@ -26,7 +26,7 @@
/*
* WindowMaker defaults DB writer
*/
#include "config.h"
#include <getopt.h>
#include <limits.h>
@@ -35,13 +35,17 @@
#include <string.h>
#include <unistd.h>
#ifdef HAVE_STDNORETURN
#include <stdnoreturn.h>
#endif
#include <WINGs/WUtil.h>
#include "../src/wconfig.h"
extern char *__progname;
static void print_help(int print_usage, int exitval)
static noreturn void print_help(int print_usage, int exitval)
{
printf("Usage: %s [OPTIONS] <domain> <key> <value>\n", __progname);
if (print_usage) {