From 0b201aeb5b653e8d09b07847d6bdc46c743d4900 Mon Sep 17 00:00:00 2001 From: cgd Date: Wed, 19 Oct 1994 03:44:57 +0000 Subject: [PATCH] better attributes. --- include/err.h | 10 +++++----- include/unistd.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/err.h b/include/err.h index f20ccc503e25..e4e5fbb25fcb 100644 --- a/include/err.h +++ b/include/err.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)err.h 8.1 (Berkeley) 6/2/93 - * $Id: err.h,v 1.9 1994/05/22 23:14:07 cgd Exp $ + * $Id: err.h,v 1.10 1994/10/19 03:44:57 cgd Exp $ */ #ifndef _ERR_H_ @@ -49,13 +49,13 @@ __BEGIN_DECLS __dead void err __P((int, const char *, ...)) - __attribute__((format (printf, 2, 3))); + __attribute__((noreturn, format (printf, 2, 3))); __dead void verr __P((int, const char *, _BSD_VA_LIST_)) - __attribute__((format (printf, 2, 0))); + __attribute__((noreturn, format (printf, 2, 0))); __dead void errx __P((int, const char *, ...)) - __attribute__((format (printf, 2, 3))); + __attribute__((noreturn, format (printf, 2, 3))); __dead void verrx __P((int, const char *, _BSD_VA_LIST_)) - __attribute__((format (printf, 2, 0))); + __attribute__((noreturn, format (printf, 2, 0))); void warn __P((const char *, ...)) __attribute__((format (printf, 1, 2))); void vwarn __P((const char *, _BSD_VA_LIST_)) diff --git a/include/unistd.h b/include/unistd.h index 08019a7d86cb..ded72509a5d4 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)unistd.h 5.13 (Berkeley) 6/17/91 - * $Id: unistd.h,v 1.20 1994/06/08 11:59:55 mycroft Exp $ + * $Id: unistd.h,v 1.21 1994/10/19 03:45:20 cgd Exp $ */ #ifndef _UNISTD_H_ @@ -50,7 +50,7 @@ #endif __BEGIN_DECLS -__dead void _exit __P((int)); +__dead void _exit __P((int)) __attribute__((noreturn)); int access __P((const char *, int)); unsigned alarm __P((unsigned)); int chdir __P((const char *));