Add __dead2 to functions that we know they are going to exit.
MFC after: 3 days
This commit is contained in:
parent
182b83a3dd
commit
999124921a
@ -258,7 +258,7 @@ cleanup(struct hast_resource *res)
|
||||
errno = rerrno;
|
||||
}
|
||||
|
||||
static void
|
||||
static __dead2 void
|
||||
primary_exit(int exitcode, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
@ -271,7 +271,7 @@ primary_exit(int exitcode, const char *fmt, ...)
|
||||
exit(exitcode);
|
||||
}
|
||||
|
||||
static void
|
||||
static __dead2 void
|
||||
primary_exitx(int exitcode, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
@ -519,7 +519,7 @@ end:
|
||||
return (hio->hio_error);
|
||||
}
|
||||
|
||||
static void
|
||||
static __dead2 void
|
||||
secondary_exit(int exitcode, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
Loading…
x
Reference in New Issue
Block a user