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/string_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/string_func.h')
-rw-r--r-- | src/string_func.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string_func.h b/src/string_func.h index ae5903bf1..10203047b 100644 --- a/src/string_func.h +++ b/src/string_func.h @@ -89,9 +89,9 @@ char *strecat(char *dst, const char *src, const char *last); */ char *strecpy(char *dst, const char *src, const char *last); -int CDECL seprintf(char *str, const char *last, const char *format, ...); +int CDECL seprintf(char *str, const char *last, const char *format, ...) WARN_FORMAT(3, 4); -char *CDECL str_fmt(const char *str, ...); +char *CDECL str_fmt(const char *str, ...) WARN_FORMAT(1, 2); /** * Scans the string for valid characters and if it finds invalid ones, |