diff options
| author | wiz <wiz@NetBSD.org> | 2012-04-08 17:04:07 +0000 |
|---|---|---|
| committer | wiz <wiz@NetBSD.org> | 2012-04-08 17:04:07 +0000 |
| commit | 413198af8358a7c51fa5d905716cb65232af0878 (patch) | |
| tree | 6fde892df7d7a03c003846f4f779b0c793ae7e71 /dist | |
| parent | 0b63dad23052026788cf26e4073f796556174a12 (diff) | |
Sprinkle __dead and __printflike for clang.
Diffstat (limited to 'dist')
| -rw-r--r-- | dist/pdisk/errors.h | 4 | ||||
| -rw-r--r-- | dist/pdisk/io.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/dist/pdisk/errors.h b/dist/pdisk/errors.h index b188e8a176a..43c473cc2b6 100644 --- a/dist/pdisk/errors.h +++ b/dist/pdisk/errors.h @@ -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__ */ diff --git a/dist/pdisk/io.h b/dist/pdisk/io.h index 8cb326700e2..5035214ce03 100644 --- a/dist/pdisk/io.h +++ b/dist/pdisk/io.h @@ -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); |
