diff options
author | kientzle <kientzle@FreeBSD.org> | 2008-12-06 07:15:42 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2008-12-06 07:15:42 +0000 |
commit | ab919ab0a2b35038e04cdd8889216ffecdd9f120 (patch) | |
tree | a10a8da3b90834eaf8e1c1916a639b209b8a2c23 /usr.bin/cpio/cpio_platform.h | |
parent | 0464cbbb305b3afaa74b584517086d6d85ce0cef (diff) | |
download | FreeBSD-src-ab919ab0a2b35038e04cdd8889216ffecdd9f120.zip FreeBSD-src-ab919ab0a2b35038e04cdd8889216ffecdd9f120.tar.gz |
Make the GCC-specific __dead2 markers conditional on whether
we're compiling under GCC.
Diffstat (limited to 'usr.bin/cpio/cpio_platform.h')
-rw-r--r-- | usr.bin/cpio/cpio_platform.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.bin/cpio/cpio_platform.h b/usr.bin/cpio/cpio_platform.h index 3145198..c251fa4 100644 --- a/usr.bin/cpio/cpio_platform.h +++ b/usr.bin/cpio/cpio_platform.h @@ -81,4 +81,12 @@ #endif #endif +/* How to mark functions that don't return. */ +#if defined(__GNUC__) && (__GNUC__ > 2 || \ + (__GNUC__ == 2 && __GNUC_MINOR__ >= 5)) +#define __LA_DEAD __attribute__((__noreturn__)) +#else +#define __LA_DEAD +#endif + #endif /* !CPIO_PLATFORM_H_INCLUDED */ |