summaryrefslogtreecommitdiffstats
path: root/firmware/export/logf.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-03-17 09:02:53 +0000
committerJens Arnold <amiconn@rockbox.org>2007-03-17 09:02:53 +0000
commit79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d (patch)
treed5c3fbab0ec01d2b0ca7d5278f15cf45f79b0763 /firmware/export/logf.h
parent1329d7d3fde426a290c03ee92b1c701dde49851c (diff)
downloadrockbox-79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d.tar.gz
rockbox-79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d.tar.bz2
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/logf.h')
-rw-r--r--firmware/export/logf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/export/logf.h b/firmware/export/logf.h
index 35cb7127e4..145c5c5169 100644
--- a/firmware/export/logf.h
+++ b/firmware/export/logf.h
@@ -34,7 +34,7 @@ extern bool logfwrap;
#endif /* __PCTOOL__ */
#define logf _logf
-void _logf(const char *format, ...);
+void _logf(const char *format, ...) ATTRIBUTE_PRINTF(1, 2);
#else /* !ROCKBOX_HAS_LOGF */
/* built without logf() support enabled */