Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/pdisk Sprinkle __dead and __printflike for clang.
details: https://anonhg.NetBSD.org/src/rev/5f0a097ab343
branches: trunk
changeset: 778693:5f0a097ab343
user: wiz <wiz%NetBSD.org@localhost>
date: Sun Apr 08 17:04:07 2012 +0000
description:
Sprinkle __dead and __printflike for clang.
diffstat:
dist/pdisk/errors.h | 4 ++--
dist/pdisk/io.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 3bfbc8583c4f -r 5f0a097ab343 dist/pdisk/errors.h
--- a/dist/pdisk/errors.h Sun Apr 08 16:09:55 2012 +0000
+++ b/dist/pdisk/errors.h Sun Apr 08 17:04:07 2012 +0000
@@ -55,8 +55,8 @@
//
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 -r 3bfbc8583c4f -r 5f0a097ab343 dist/pdisk/io.h
--- a/dist/pdisk/io.h Sun Apr 08 16:09:55 2012 +0000
+++ b/dist/pdisk/io.h Sun Apr 08 17:04:07 2012 +0000
@@ -54,7 +54,7 @@
//
// 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);
Home |
Main Index |
Thread Index |
Old Index