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 5762de7243
commit 6d09982145

View file

@ -75,7 +75,7 @@ typedef struct patch {
STAILQ_HEAD(patch_list, patch) patches;
static void usage(void);
static void usage(void) __dead2;
static void back_patch(void);
static void output_code(void);
static void output_listing(char *ifilename);