Skip to content

Commit

Permalink
Fix bsdtar building on platforms that already have an older
Browse files Browse the repository at this point in the history
libarchive installed.

SVN-Revision: 218
  • Loading branch information
kientzle committed Oct 6, 2008
1 parent 5486b51 commit fe41287
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tar/bsdtar_platform.h
Expand Up @@ -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 */

0 comments on commit fe41287

Please sign in to comment.