Sprinkle __dead and __printflike for clang.

This commit is contained in:
wiz 2012-04-08 17:04:07 +00:00
parent 72e34f2f4a
commit e57903e6cb
2 changed files with 3 additions and 3 deletions

4
dist/pdisk/errors.h vendored
View File

@ -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__ */

2
dist/pdisk/io.h vendored
View File

@ -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);