mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r19207) -Fix (r19127): compilation was broken for gcc 3.3
This commit is contained in:
parent
03e5434e63
commit
b1151645c0
@ -126,7 +126,7 @@ struct CStrA : public CBlobT<char>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Add formated string (like sprintf) at the end of existing contents. */
|
/** 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_list args;
|
||||||
va_start(args, format);
|
va_start(args, format);
|
||||||
@ -136,7 +136,7 @@ struct CStrA : public CBlobT<char>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Assign formated string (like sprintf). */
|
/** 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();
|
base::Free();
|
||||||
va_list args;
|
va_list args;
|
||||||
|
Loading…
Reference in New Issue
Block a user