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/newgrf.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/newgrf.h')
-rw-r--r-- | src/newgrf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.h b/src/newgrf.h index dc9e1e67d..e05ef89fe 100644 --- a/src/newgrf.h +++ b/src/newgrf.h @@ -129,7 +129,7 @@ void LoadNewGRFFile(GRFConfig *config, uint file_index, GrfLoadingStage stage); void LoadNewGRF(uint load_index, uint file_index); void ReloadNewGRFData(); // in saveload/afterload.cpp -void CDECL grfmsg(int severity, const char *str, ...); +void CDECL grfmsg(int severity, const char *str, ...) WARN_FORMAT(2, 3); bool HasGrfMiscBit(GrfMiscBit bit); bool GetGlobalVariable(byte param, uint32 *value); |