From: Tim Kientzle Date: Mon, 6 Oct 2008 22:39:07 +0000 (-0400) Subject: Fix bsdtar building on platforms that already have an older X-Git-Tag: v2.6.0~75 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe412875fc366ec390eed1a337a0dfbddfcc7dd7;p=thirdparty%2Flibarchive.git Fix bsdtar building on platforms that already have an older libarchive installed. SVN-Revision: 218 --- diff --git a/tar/bsdtar_platform.h b/tar/bsdtar_platform.h index ccb9d3c02..a1c96bfe9 100644 --- a/tar/bsdtar_platform.h +++ b/tar/bsdtar_platform.h @@ -147,4 +147,14 @@ #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 */