Reintroduce __dead

This commit is contained in:
Vadim Vygonets 2015-11-16 11:41:34 +01:00
parent 8fdb7d486c
commit 3ac907dc10
2 changed files with 10 additions and 2 deletions

View File

@ -220,7 +220,7 @@ sighdlr(int sig)
errno = save_errno;
}
void
__dead void
usage(void)
{
extern char *__progname;

View File

@ -21,6 +21,14 @@
#ifndef _CALMWM_H_
#define _CALMWM_H_
#ifndef __dead
#ifdef __GNUC__
#define __dead __attribute__((noreturn))
#else
#define __dead
#endif
#endif
#include <sys/param.h>
#include <stdio.h>
#include "queue.h"
@ -401,7 +409,7 @@ enum {
extern Atom cwmh[CWMH_NITEMS];
extern Atom ewmh[EWMH_NITEMS];
void usage(void);
__dead void usage(void);
void client_applysizehints(struct client_ctx *);
void client_config(struct client_ctx *);