]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
macro: Use C11 noreturn only
authorJan Janssen <medhefgo@web.de>
Fri, 20 May 2022 19:59:49 +0000 (21:59 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 21 May 2022 14:01:47 +0000 (15:01 +0100)
No need to provide a fallback as we compile with gnu11.

src/fundamental/macro-fundamental.h

index 083fca3e954645c3fee6257cbaacaefa48594b9c..c612fef710d2217ba9f486c895f82baf80269b05 100644 (file)
 #else
 #define _fallthrough_
 #endif
-/* Define C11 noreturn without <stdnoreturn.h> and even on older gcc
- * compiler versions */
-#ifndef _noreturn_
-#if __STDC_VERSION__ >= 201112L
 #define _noreturn_ _Noreturn
-#else
-#define _noreturn_ __attribute__((__noreturn__))
-#endif
-#endif
 
 #define XSTRINGIFY(x) #x
 #define STRINGIFY(x) XSTRINGIFY(x)