From 151babee57709529e8db2a3871abc4bf66feb1ec Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 14 Feb 2010 13:01:33 +0000 Subject: (svn r19127) -Codechange: Add printf-like warnings to more functions. --- src/misc/dbg_helpers.h | 2 +- src/misc/str.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/misc/dbg_helpers.h b/src/misc/dbg_helpers.h index 670548d35..379b2e82e 100644 --- a/src/misc/dbg_helpers.h +++ b/src/misc/dbg_helpers.h @@ -137,7 +137,7 @@ struct DumpTarget { void WriteIndent(); - void WriteLine(const char *format, ...); + void CDECL WriteLine(const char *format, ...) WARN_FORMAT(2, 3); void WriteValue(const char *name, const char *value_str); void WriteTile(const char *name, TileIndex t); 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 } /** 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 } /** 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; -- cgit v1.2.3-70-g09d2