__dead2 as discussed in August.
SVN-Revision: 217
/* Name of this program; used in error reporting, initialized in main(). */
const char *cpio_progname;
-void cpio_errc(int _eval, int _code, const char *fmt, ...) __dead2;
+void cpio_errc(int _eval, int _code, const char *fmt, ...) __LA_DEAD;
void cpio_warnc(int _code, const char *fmt, ...);
int owner_parse(const char *, int *, int *);
# define __LA_DECL
#endif
+#if defined(__GNUC__) && (__GNUC__ > 2 || \
+ (__GNUC__ == 2 && __GNUC_MINOR__ >= 5))
+#define __LA_DEAD __attribute__((__noreturn__))
+#else
+#define __LA_DEAD
+#endif
+
#ifdef __cplusplus
extern "C" {
void __archive_check_magic(struct archive *, unsigned int magic,
unsigned int state, const char *func);
-void __archive_errx(int retvalue, const char *msg) __dead2;
+void __archive_errx(int retvalue, const char *msg) __LA_DEAD;
#define err_combine(a,b) ((a) < (b) ? (a) : (b))
};
void bsdtar_errc(struct bsdtar *, int _eval, int _code,
- const char *fmt, ...) __dead2;
+ const char *fmt, ...) __LA_DEAD;
void bsdtar_warnc(struct bsdtar *, int _code, const char *fmt, ...);
void cleanup_exclusions(struct bsdtar *);
void do_chdir(struct bsdtar *);