Mark usage function as __dead2 in programs where it does not return

In most cases, usage does not return, so mark them as __dead2. For the
cases where they do return, they have not been marked __dead2.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/735
This commit is contained in:
Alfonso Gregory 2023-07-07 10:39:23 -06:00 committed by Warner Losh
parent 65f3be9110
commit 5762de7243

View file

@ -58,7 +58,7 @@ static void exit(int) __dead2;
static void load(const char *);
static int dskread(void *, uint64_t, int);
static void usage(void);
static void usage(void) __dead2;
static void bcopy(const void *src, void *dst, size_t len);
static void bzero(void *b, size_t len);