Sprinkle __dead and __printflike for clang.
This commit is contained in:
parent
72e34f2f4a
commit
e57903e6cb
|
@ -55,8 +55,8 @@ extern int hflag;
|
|||
//
|
||||
void do_help(void);
|
||||
void init_program_name(char **argv);
|
||||
void error(int value, const char *fmt, ...);
|
||||
void fatal(int value, const char *fmt, ...);
|
||||
void error(int value, const char *fmt, ...) __printflike(2, 3);
|
||||
void fatal(int value, const char *fmt, ...) __dead __printflike(2, 3);
|
||||
void usage(const char *kind);
|
||||
|
||||
#endif /* __errors__ */
|
||||
|
|
|
@ -54,7 +54,7 @@ extern const long kDefault;
|
|||
//
|
||||
// Forward declarations
|
||||
//
|
||||
void bad_input(const char *fmt, ...);
|
||||
void bad_input(const char *fmt, ...) __printflike(1, 2);
|
||||
void flush_to_newline(int keep_newline);
|
||||
int get_command(const char *prompt, int promptBeforeGet, int *command);
|
||||
uint32_t get_multiplier(long divisor);
|
||||
|
|
Loading…
Reference in New Issue