summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-02-22 16:24:38 +0000
committersmatz <smatz@openttd.org>2010-02-22 16:24:38 +0000
commitb1151645c0128842bea3d4f46bf9c6b007d96555 (patch)
tree4755637c92c04c5c886ca8cbc9bb7edf7c8afa15
parent03e5434e63305fa66cbd6460f584c2dd99cdb128 (diff)
downloadopenttd-b1151645c0128842bea3d4f46bf9c6b007d96555.tar.xz
(svn r19207) -Fix (r19127): compilation was broken for gcc 3.3
-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 9204dbfb7..7f65f1958 100644
--- a/src/misc/str.hpp
+++ b/src/misc/str.hpp
@@ -126,7 +126,7 @@ struct CStrA : public CBlobT<char>
}
/** Add formated string (like sprintf) at the end of existing contents. */
- int CDECL AddFormat(const char *format, ...) WARN_FORMAT(2, 3)
+ int CDECL WARN_FORMAT(2, 3) AddFormat(const char *format, ...)
{
va_list args;
va_start(args, format);
@@ -136,7 +136,7 @@ struct CStrA : public CBlobT<char>
}
/** Assign formated string (like sprintf). */
- int CDECL Format(const char *format, ...) WARN_FORMAT(2, 3)
+ int CDECL WARN_FORMAT(2, 3) Format(const char *format, ...)
{
base::Free();
va_list args;