projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1246d09
)
macro: Use C11 noreturn only
author
Jan Janssen
<medhefgo@web.de>
Fri, 20 May 2022 19:59:49 +0000
(21:59 +0200)
committer
Luca 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
patch
|
blob
|
history
diff --git
a/src/fundamental/macro-fundamental.h
b/src/fundamental/macro-fundamental.h
index 083fca3e954645c3fee6257cbaacaefa48594b9c..c612fef710d2217ba9f486c895f82baf80269b05 100644
(file)
--- 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)