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 /apps/gui/splash.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 'apps/gui/splash.h')
-rw-r--r-- | apps/gui/splash.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/gui/splash.h b/apps/gui/splash.h index 589be95033..206674d9d0 100644 --- a/apps/gui/splash.h +++ b/apps/gui/splash.h | |||
@@ -19,6 +19,7 @@ | |||
19 | 19 | ||
20 | #ifndef _GUI_SPLASH_H_ | 20 | #ifndef _GUI_SPLASH_H_ |
21 | #define _GUI_SPLASH_H_ | 21 | #define _GUI_SPLASH_H_ |
22 | #include <_ansi.h> | ||
22 | #include "screen_access.h" | 23 | #include "screen_access.h" |
23 | 24 | ||
24 | /* | 25 | /* |
@@ -28,13 +29,14 @@ | |||
28 | * - fmt : what to say *printf style | 29 | * - fmt : what to say *printf style |
29 | */ | 30 | */ |
30 | extern void gui_splash(struct screen * screen, int ticks, | 31 | extern void gui_splash(struct screen * screen, int ticks, |
31 | const char *fmt, ...); | 32 | const char *fmt, ...) ATTRIBUTE_PRINTF(3, 4); |
32 | 33 | ||
33 | /* | 34 | /* |
34 | * Puts a splash message centered on all the screens for a given period | 35 | * Puts a splash message centered on all the screens for a given period |
35 | * - ticks : how long the splash is displayed (in rb ticks) | 36 | * - ticks : how long the splash is displayed (in rb ticks) |
36 | * - fmt : what to say *printf style | 37 | * - fmt : what to say *printf style |
37 | */ | 38 | */ |
38 | extern void gui_syncsplash(int ticks, const unsigned char *fmt, ...); | 39 | extern void gui_syncsplash(int ticks, const char *fmt, ...) |
40 | ATTRIBUTE_PRINTF(2, 3); | ||
39 | 41 | ||
40 | #endif /* _GUI_ICON_H_ */ | 42 | #endif /* _GUI_ICON_H_ */ |