]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix bsdtar building on platforms that already have an older
authorTim Kientzle <kientzle@gmail.com>
Mon, 6 Oct 2008 22:39:07 +0000 (18:39 -0400)
committerTim Kientzle <kientzle@gmail.com>
Mon, 6 Oct 2008 22:39:07 +0000 (18:39 -0400)
libarchive installed.

SVN-Revision: 218

tar/bsdtar_platform.h

index ccb9d3c0257e011f3bc494de84264b416da46649..a1c96bfe9dc0d3caa1e48b2c0218868e1206e358 100644 (file)
 #endif
 #endif
 
+/* How to mark functions that don't return. */
+/* This facilitates use of some newer static code analysis tools. */
+#undef __LA_DEAD
+#if defined(__GNUC__) && (__GNUC__ > 2 || \
+                         (__GNUC__ == 2 && __GNUC_MINOR__ >= 5))
+#define        __LA_DEAD       __attribute__((__noreturn__))
+#else
+#define        __LA_DEAD
+#endif
+
 #endif /* !BSDTAR_PLATFORM_H_INCLUDED */