summaryrefslogtreecommitdiff
path: root/src/fundamental
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2022-05-20 21:59:49 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2022-05-21 15:01:47 +0100
commit351b30dae00eca6ca27dd30c36a1667c423c8682 (patch)
tree33d06f95adbd25fc7ec4cf67a43cb5c5dd349bd6 /src/fundamental
parent1246d097058ccec066ea8fd0952da437b28ff85f (diff)
downloadsystemd-351b30dae00eca6ca27dd30c36a1667c423c8682.tar.gz
macro: Use C11 noreturn only
No need to provide a fallback as we compile with gnu11.
Diffstat (limited to 'src/fundamental')
-rw-r--r--src/fundamental/macro-fundamental.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/fundamental/macro-fundamental.h b/src/fundamental/macro-fundamental.h
index 083fca3e95..c612fef710 100644
--- a/src/fundamental/macro-fundamental.h
+++ b/src/fundamental/macro-fundamental.h
@@ -24,15 +24,7 @@
#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)