From: Christophe CURIS <[email protected]>
Signed-off-by: Christophe CURIS <[email protected]>
---
test/wtest.c | 9 ++++++++-
util/wmsetbg.c | 2 +-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/test/wtest.c b/test/wtest.c
index 37f285d..00b1250 100644
--- a/test/wtest.c
+++ b/test/wtest.c
@@ -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
diff --git a/util/wmsetbg.c b/util/wmsetbg.c
index ee4780f..b52f950 100644
--- a/util/wmsetbg.c
+++ b/util/wmsetbg.c
@@ -100,7 +100,7 @@ typedef struct BackgroundTexture {
int height;
} BackgroundTexture;
-static void quit(int rcode)
+static noreturn void quit(int rcode)
{
WMReleaseApplication();
exit(rcode);
--
1.9.2
--
To unsubscribe, send mail to [email protected].