mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 12:00:31 +01:00
Add attribute 'noreturn' to a few functions pointed by clang
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
7caadb48de
commit
ab348c6dc8
@@ -8,6 +8,8 @@
|
||||
* TODO: remake
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <X11/Xlib.h>
|
||||
@@ -15,6 +17,11 @@
|
||||
#include <X11/Xproto.h>
|
||||
#include <WMaker.h>
|
||||
|
||||
#ifdef HAVE_STDNORETURN
|
||||
#include <stdnoreturn.h>
|
||||
#endif
|
||||
|
||||
|
||||
static char bits[] = {
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
|
||||
@@ -34,7 +41,7 @@ static void callback(int item)
|
||||
printf("pushed item %i\n", item);
|
||||
}
|
||||
|
||||
static void quit(int item)
|
||||
static noreturn void quit(int item)
|
||||
{
|
||||
/*
|
||||
* This parameter is not used, but because we're a call-back we have a fixed
|
||||
|
||||
@@ -100,7 +100,7 @@ typedef struct BackgroundTexture {
|
||||
int height;
|
||||
} BackgroundTexture;
|
||||
|
||||
static void quit(int rcode)
|
||||
static noreturn void quit(int rcode)
|
||||
{
|
||||
WMReleaseApplication();
|
||||
exit(rcode);
|
||||
|
||||
Reference in New Issue
Block a user