mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Reintroduce __dead
This commit is contained in:
parent
8fdb7d486c
commit
3ac907dc10
2
calmwm.c
2
calmwm.c
@ -220,7 +220,7 @@ sighdlr(int sig)
|
|||||||
errno = save_errno;
|
errno = save_errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
__dead void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
extern char *__progname;
|
extern char *__progname;
|
||||||
|
10
calmwm.h
10
calmwm.h
@ -21,6 +21,14 @@
|
|||||||
#ifndef _CALMWM_H_
|
#ifndef _CALMWM_H_
|
||||||
#define _CALMWM_H_
|
#define _CALMWM_H_
|
||||||
|
|
||||||
|
#ifndef __dead
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#define __dead __attribute__((noreturn))
|
||||||
|
#else
|
||||||
|
#define __dead
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "queue.h"
|
#include "queue.h"
|
||||||
@ -401,7 +409,7 @@ enum {
|
|||||||
extern Atom cwmh[CWMH_NITEMS];
|
extern Atom cwmh[CWMH_NITEMS];
|
||||||
extern Atom ewmh[EWMH_NITEMS];
|
extern Atom ewmh[EWMH_NITEMS];
|
||||||
|
|
||||||
void usage(void);
|
__dead void usage(void);
|
||||||
|
|
||||||
void client_applysizehints(struct client_ctx *);
|
void client_applysizehints(struct client_ctx *);
|
||||||
void client_config(struct client_ctx *);
|
void client_config(struct client_ctx *);
|
||||||
|
Loading…
Reference in New Issue
Block a user