diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-02-22 23:38:48 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-02-22 23:38:48 +0000 |
commit | fdbd58c5f5d82d0968a38a4daf790912893d8912 (patch) | |
tree | f31c51ab0ca271ddaa2f415807ac1cd23408dc7b | |
parent | a4c2829ba032cbffa284f26bb19d32dbeda4d0c1 (diff) | |
download | busybox-w32-fdbd58c5f5d82d0968a38a4daf790912893d8912.tar.gz busybox-w32-fdbd58c5f5d82d0968a38a4daf790912893d8912.tar.bz2 busybox-w32-fdbd58c5f5d82d0968a38a4daf790912893d8912.zip |
Turn off the printf attribute for the ?error_msg* functions, since it
is ok to pass them a NULL, unlike printf. This silences a pointless
warning message.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@1891 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | busybox.h | 8 | ||||
-rw-r--r-- | include/busybox.h | 8 |
2 files changed, 8 insertions, 8 deletions
@@ -89,10 +89,10 @@ extern const struct BB_applet applets[]; | |||
89 | extern const char *applet_name; | 89 | extern const char *applet_name; |
90 | 90 | ||
91 | extern void show_usage(void) __attribute__ ((noreturn)); | 91 | extern void show_usage(void) __attribute__ ((noreturn)); |
92 | extern void error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); | 92 | extern void error_msg(const char *s, ...); |
93 | extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); | 93 | extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn)); |
94 | extern void perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); | 94 | extern void perror_msg(const char *s, ...); |
95 | extern void perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); | 95 | extern void perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn)); |
96 | 96 | ||
97 | const char *mode_string(int mode); | 97 | const char *mode_string(int mode); |
98 | const char *time_string(time_t timeVal); | 98 | const char *time_string(time_t timeVal); |
diff --git a/include/busybox.h b/include/busybox.h index 692a9084e..8d4976a4b 100644 --- a/include/busybox.h +++ b/include/busybox.h | |||
@@ -89,10 +89,10 @@ extern const struct BB_applet applets[]; | |||
89 | extern const char *applet_name; | 89 | extern const char *applet_name; |
90 | 90 | ||
91 | extern void show_usage(void) __attribute__ ((noreturn)); | 91 | extern void show_usage(void) __attribute__ ((noreturn)); |
92 | extern void error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); | 92 | extern void error_msg(const char *s, ...); |
93 | extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); | 93 | extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn)); |
94 | extern void perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); | 94 | extern void perror_msg(const char *s, ...); |
95 | extern void perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); | 95 | extern void perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn)); |
96 | 96 | ||
97 | const char *mode_string(int mode); | 97 | const char *mode_string(int mode); |
98 | const char *time_string(time_t timeVal); | 98 | const char *time_string(time_t timeVal); |