summaryrefslogtreecommitdiff
path: root/src/misc/str.hpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-02-14 13:01:33 +0000
committerfrosch <frosch@openttd.org>2010-02-14 13:01:33 +0000
commit151babee57709529e8db2a3871abc4bf66feb1ec (patch)
treec0ede752682ad466bdd4b085ebdbc0bf1a3e43c8 /src/misc/str.hpp
parentd757f81646f703d76236e3fb1ba57209f925b22a (diff)
downloadopenttd-151babee57709529e8db2a3871abc4bf66feb1ec.tar.xz
(svn r19127) -Codechange: Add printf-like warnings to more functions.
Diffstat (limited to 'src/misc/str.hpp')
-rw-r--r--src/misc/str.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc/str.hpp b/src/misc/str.hpp
index 8ef8e8f87..9a4663a6e 100644
--- a/src/misc/str.hpp
+++ b/src/misc/str.hpp
@@ -100,7 +100,7 @@ struct CStrA : public CBlobT<char>
}
/** Add formated string (like sprintf) at the end of existing contents. */
- int AddFormat(const char *format, ...)
+ int CDECL AddFormat(const char *format, ...) WARN_FORMAT(2, 3)
{
va_list args;
va_start(args, format);
@@ -110,7 +110,7 @@ struct CStrA : public CBlobT<char>
}
/** Assign formated string (like sprintf). */
- int Format(const char *format, ...)
+ int CDECL Format(const char *format, ...) WARN_FORMAT(2, 3)
{
base::Free();
va_list args;