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:
committed by
Warner Losh
parent
72e1ea2f13
commit
a9cce232a6
@@ -66,7 +66,7 @@ static int flag_I = 1000000;
|
||||
printw(__VA_ARGS__); \
|
||||
} while(0)
|
||||
|
||||
static void usage(void);
|
||||
static void usage(void) __dead2;
|
||||
|
||||
static const char*
|
||||
el_prompt(void)
|
||||
|
||||
Reference in New Issue
Block a user