Declare functions that don't return as having attribute __dead2.

This commit is contained in:
Bruce Evans 1994-09-08 10:29:15 +00:00
parent 4e0fff210e
commit 2868e9618b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2572
3 changed files with 7 additions and 7 deletions

View File

@ -47,10 +47,10 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
__dead void err __P((int, const char *, ...));
__dead void verr __P((int, const char *, _BSD_VA_LIST_));
__dead void errx __P((int, const char *, ...));
__dead void verrx __P((int, const char *, _BSD_VA_LIST_));
__dead void err __P((int, const char *, ...)) __dead2;
__dead void verr __P((int, const char *, _BSD_VA_LIST_)) __dead2;
__dead void errx __P((int, const char *, ...)) __dead2;
__dead void verrx __P((int, const char *, _BSD_VA_LIST_)) __dead2;
void warn __P((const char *, ...));
void vwarn __P((const char *, _BSD_VA_LIST_));
void warnx __P((const char *, ...));

View File

@ -77,7 +77,7 @@ extern int __mb_cur_max;
__BEGIN_DECLS
__dead void
abort __P((void));
abort __P((void)) __dead2;
__pure int
abs __P((int));
int atexit __P((void (*)(void)));
@ -90,7 +90,7 @@ void *calloc __P((size_t, size_t));
__pure div_t
div __P((int, int));
__dead void
exit __P((int));
exit __P((int)) __dead2;
void free __P((void *));
char *getenv __P((const char *));
__pure long

View File

@ -50,7 +50,7 @@
__BEGIN_DECLS
__dead void
_exit __P((int));
_exit __P((int)) __dead2;
int access __P((const char *, int));
unsigned int alarm __P((unsigned int));
int chdir __P((const char *));