mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-22 01:45:46 +01:00
util: Added noreturn attribute to appropriate functions
clang is a bit more strict on the attribute usage, so let's comply. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
7491f5479b
commit
f8b6871371
@@ -24,6 +24,8 @@
|
||||
/*
|
||||
* TODO: rewrite, too dirty
|
||||
*/
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
@@ -37,8 +39,6 @@
|
||||
#include <sys/types.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#ifdef XINERAMA
|
||||
# ifdef SOLARIS_XINERAMA /* sucks */
|
||||
# include <X11/extensions/xinerama.h>
|
||||
@@ -47,6 +47,10 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STDNORETURN
|
||||
#include <stdnoreturn.h>
|
||||
#endif
|
||||
|
||||
#include "../src/wconfig.h"
|
||||
|
||||
#ifndef GLOBAL_DEFAULTS_SUBDIR
|
||||
@@ -880,7 +884,7 @@ static int readmsg(int fd, char *buffer, int size)
|
||||
* n is 4 bytes
|
||||
* size = 4 bytes for length of the message data
|
||||
*/
|
||||
static void helperLoop(RContext * rc)
|
||||
static noreturn void helperLoop(RContext * rc)
|
||||
{
|
||||
BackgroundTexture *textures[WORKSPACE_COUNT];
|
||||
int maxTextures = 0;
|
||||
|
||||
Reference in New Issue
Block a user