diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-03-17 09:02:53 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-03-17 09:02:53 +0000 |
commit | 79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d (patch) | |
tree | d5c3fbab0ec01d2b0ca7d5278f15cf45f79b0763 /firmware/export/debug.h | |
parent | 1329d7d3fde426a290c03ee92b1c701dde49851c (diff) | |
download | rockbox-79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d.tar.gz rockbox-79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d.zip |
Let GCC check arguments of some more printf-style functions, also for plugins and codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12815 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/debug.h')
-rw-r--r-- | firmware/export/debug.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/export/debug.h b/firmware/export/debug.h index ce556d6418..ef56ea6092 100644 --- a/firmware/export/debug.h +++ b/firmware/export/debug.h | |||
@@ -19,9 +19,12 @@ | |||
19 | #ifndef DEBUG_H | 19 | #ifndef DEBUG_H |
20 | #define DEBUG_H | 20 | #define DEBUG_H |
21 | 21 | ||
22 | #include <_ansi.h> | ||
23 | |||
22 | extern void debug_init(void); | 24 | extern void debug_init(void); |
23 | extern void debugf(const char* fmt,...); | 25 | extern void debugf(const char* fmt,...) ATTRIBUTE_PRINTF(1, 2); |
24 | extern void ldebugf(const char* file, int line, const char *fmt, ...); | 26 | extern void ldebugf(const char* file, int line, const char *fmt, ...) |
27 | ATTRIBUTE_PRINTF(3, 4); | ||
25 | 28 | ||
26 | #ifdef __GNUC__ | 29 | #ifdef __GNUC__ |
27 | 30 | ||