aboutsummaryrefslogtreecommitdiff
path: root/src/shared/helpers.h
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-01-25 04:00:01 +0000
committerMike Frysinger <vapier@gentoo.org>2023-01-25 00:49:47 -0500
commitddf4a3a7a05ec09da8a9c218e6597a1e8385c2d4 (patch)
treeb0c83b65855713293628f29f0ed66c75ebf5299f /src/shared/helpers.h
parenta6568c304f10cbeae566e274db6adf53d3ddfcab (diff)
shared: move _noreturn definition into helpers.h
Diffstat (limited to 'src/shared/helpers.h')
-rw-r--r--src/shared/helpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/helpers.h b/src/shared/helpers.h
index 44d76552..eaf685c6 100644
--- a/src/shared/helpers.h
+++ b/src/shared/helpers.h
@@ -27,10 +27,12 @@
#endif
#if __GNUC__ > 2 || defined(__INTEL_COMPILER)
# define _dead __attribute__((__noreturn__))
+# define _noreturn __attribute__ ((__noreturn__))
# define _unused __attribute__((__unused__))
# define _xasprintf(a, b) __attribute__((__format__(__printf__, a, b)))
#else
# define _dead
+# define _noreturn
# define _unused
# define _xasprintf(a, b)
#endif