diff options
author | smatz <smatz@openttd.org> | 2009-05-10 17:27:25 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-10 17:27:25 +0000 |
commit | f5316c5cbd13c3ce8c0a7d8b652ce7d975c17438 (patch) | |
tree | e9c57e3fa45a652740e681f7d25b731d7b2f9cfb /src/console_func.h | |
parent | 552f10bb09667a7c36724092d290808c2c9e51b4 (diff) | |
download | openttd-f5316c5cbd13c3ce8c0a7d8b652ce7d975c17438.tar.xz |
(svn r16269) -Codechange: use gcc's ability to check parameters sent to printf-like functions
-Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
Diffstat (limited to 'src/console_func.h')
-rw-r--r-- | src/console_func.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console_func.h b/src/console_func.h index 60fc7010c..5487e3819 100644 --- a/src/console_func.h +++ b/src/console_func.h @@ -17,7 +17,7 @@ void IConsoleClose(); /* console output */ void IConsolePrint(ConsoleColour colour_code, const char *string); -void CDECL IConsolePrintF(ConsoleColour colour_code, const char *s, ...); +void CDECL IConsolePrintF(ConsoleColour colour_code, const char *format, ...) WARN_FORMAT(2, 3); void IConsoleDebug(const char *dbg, const char *string); void IConsoleWarning(const char *string); void IConsoleError(const char *string); |