Add __dead2 to functions that we know they are going to exit.
MFC after: 3 days
This commit is contained in:
parent
6baf7a243a
commit
e43e02f1a4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212899
@ -258,7 +258,7 @@ cleanup(struct hast_resource *res)
|
|||||||
errno = rerrno;
|
errno = rerrno;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static __dead2 void
|
||||||
primary_exit(int exitcode, const char *fmt, ...)
|
primary_exit(int exitcode, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
@ -271,7 +271,7 @@ primary_exit(int exitcode, const char *fmt, ...)
|
|||||||
exit(exitcode);
|
exit(exitcode);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static __dead2 void
|
||||||
primary_exitx(int exitcode, const char *fmt, ...)
|
primary_exitx(int exitcode, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
@ -519,7 +519,7 @@ requnpack(struct hast_resource *res, struct hio *hio)
|
|||||||
return (hio->hio_error);
|
return (hio->hio_error);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static __dead2 void
|
||||||
secondary_exit(int exitcode, const char *fmt, ...)
|
secondary_exit(int exitcode, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
Loading…
Reference in New Issue
Block a user