1
0
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:
Christophe CURIS
2014-05-09 21:29:13 +02:00
committed by Carlos R. Mafra
parent 7caadb48de
commit ab348c6dc8
2 changed files with 9 additions and 2 deletions

View File

@@ -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

View File

@@ -100,7 +100,7 @@ typedef struct BackgroundTexture {
int height;
} BackgroundTexture;
static void quit(int rcode)
static noreturn void quit(int rcode)
{
WMReleaseApplication();
exit(rcode);