more __attribute__'s

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1506 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-03-30 08:57:35 +00:00
parent 200d0d4068
commit 58f09d9b89
2 changed files with 24 additions and 16 deletions

View File

@@ -13,13 +13,17 @@ extern char *__progname;
void warnerr(int doexit, int eval, int doerrno, const char *fmt, va_list ap); void warnerr(int doexit, int eval, int doerrno, const char *fmt, va_list ap);
void verr(int eval, const char *fmt, va_list ap); #ifndef __GNUC__
void err(int eval, const char *fmt, ...); #define __attribute__(x)
void verrx(int eval, const char *fmt, va_list ap); #endif
void errx(int eval, const char *fmt, ...);
void vwarn(const char *fmt, va_list ap); void verr(int eval, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 2, 0)));
void warn(const char *fmt, ...); void err(int eval, const char *fmt, ...) __attribute__ ((noreturn, format (printf, 2, 3)));
void vwarnx(const char *fmt, va_list ap); void verrx(int eval, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 2, 0)));
void warnx(const char *fmt, ...); void errx(int eval, const char *fmt, ...) __attribute__ ((noreturn, format (printf, 2, 3)));
void vwarn(const char *fmt, va_list ap) __attribute__ ((format (printf, 1, 0)));
void warn(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
void vwarnx(const char *fmt, va_list ap) __attribute__ ((format (printf, 1, 0)));
void warnx(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));;
#endif /* __ERR_H__ */ #endif /* __ERR_H__ */

View File

@@ -13,13 +13,17 @@ extern char *__progname;
void warnerr(int doexit, int eval, int doerrno, const char *fmt, va_list ap); void warnerr(int doexit, int eval, int doerrno, const char *fmt, va_list ap);
void verr(int eval, const char *fmt, va_list ap); #ifndef __GNUC__
void err(int eval, const char *fmt, ...); #define __attribute__(x)
void verrx(int eval, const char *fmt, va_list ap); #endif
void errx(int eval, const char *fmt, ...);
void vwarn(const char *fmt, va_list ap); void verr(int eval, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 2, 0)));
void warn(const char *fmt, ...); void err(int eval, const char *fmt, ...) __attribute__ ((noreturn, format (printf, 2, 3)));
void vwarnx(const char *fmt, va_list ap); void verrx(int eval, const char *fmt, va_list ap) __attribute__ ((noreturn, format (printf, 2, 0)));
void warnx(const char *fmt, ...); void errx(int eval, const char *fmt, ...) __attribute__ ((noreturn, format (printf, 2, 3)));
void vwarn(const char *fmt, va_list ap) __attribute__ ((format (printf, 1, 0)));
void warn(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
void vwarnx(const char *fmt, va_list ap) __attribute__ ((format (printf, 1, 0)));
void warnx(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));;
#endif /* __ERR_H__ */ #endif /* __ERR_H__ */