summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2020-06-27 09:01:31 +0100
committerCharles Pigott <charlespigott@googlemail.com>2020-06-27 14:51:14 +0100
commit64b1c70fddc8b7ef2e8f629d6e5e1749f21a0e4b (patch)
treeb5bbd4c1701a1ef50892744a4d5f5f27a7f3d3ff /src/script
parent224acb78b03defd075aafec9d3340b3bc0dcedfc (diff)
downloadopenttd-64b1c70fddc8b7ef2e8f629d6e5e1749f21a0e4b.tar.xz
Codechange: Add WARN_FORMAT to vseprintf and fix the cascade of warnings that followed
Diffstat (limited to 'src/script')
-rw-r--r--src/script/squirrel.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/squirrel.hpp b/src/script/squirrel.hpp
index cfe54b36e..412011ccc 100644
--- a/src/script/squirrel.hpp
+++ b/src/script/squirrel.hpp
@@ -63,12 +63,12 @@ protected:
/**
* If a user runs 'print' inside a script, this function gets the params.
*/
- static void PrintFunc(HSQUIRRELVM vm, const SQChar *s, ...);
+ static void PrintFunc(HSQUIRRELVM vm, const SQChar *s, ...) WARN_FORMAT(2, 3);
/**
* If an error has to be print, this function is called.
*/
- static void ErrorPrintFunc(HSQUIRRELVM vm, const SQChar *s, ...);
+ static void ErrorPrintFunc(HSQUIRRELVM vm, const SQChar *s, ...) WARN_FORMAT(2, 3);
public:
Squirrel(const char *APIName);