Module Name: src
Committed By: wiz
Date: Sun Apr 8 17:04:07 UTC 2012
Modified Files:
src/dist/pdisk: errors.h io.h
Log Message:
Sprinkle __dead and __printflike for clang.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/dist/pdisk/errors.h
cvs rdiff -u -r1.3 -r1.4 src/dist/pdisk/io.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/dist/pdisk/errors.h
diff -u src/dist/pdisk/errors.h:1.2 src/dist/pdisk/errors.h:1.3
--- src/dist/pdisk/errors.h:1.2 Wed Jul 13 15:25:29 2005
+++ src/dist/pdisk/errors.h Sun Apr 8 17:04:07 2012
@@ -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__ */
Index: src/dist/pdisk/io.h
diff -u src/dist/pdisk/io.h:1.3 src/dist/pdisk/io.h:1.4
--- src/dist/pdisk/io.h:1.3 Fri Apr 6 22:41:47 2012
+++ src/dist/pdisk/io.h Sun Apr 8 17:04:07 2012
@@ -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);