__attribute__ for warnerr

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1507 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-03-30 09:04:38 +00:00
parent 58f09d9b89
commit cbccd40750
2 changed files with 4 additions and 4 deletions

View File

@@ -11,12 +11,12 @@
extern char *__progname;
void warnerr(int doexit, int eval, int doerrno, const char *fmt, va_list ap);
#ifndef __GNUC__
#define __attribute__(x)
#endif
void warnerr(int doexit, int eval, int doerrno, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 4, 0)));
void verr(int eval, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 2, 0)));
void err(int eval, const char *fmt, ...) __attribute__ ((noreturn, format (printf, 2, 3)));
void verrx(int eval, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 2, 0)));

View File

@@ -11,12 +11,12 @@
extern char *__progname;
void warnerr(int doexit, int eval, int doerrno, const char *fmt, va_list ap);
#ifndef __GNUC__
#define __attribute__(x)
#endif
void warnerr(int doexit, int eval, int doerrno, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 4, 0)));
void verr(int eval, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 2, 0)));
void err(int eval, const char *fmt, ...) __attribute__ ((noreturn, format (printf, 2, 3)));
void verrx(int eval, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 2, 0)));