Codechange: Add WARN_FORMAT to vseprintf and fix the cascade of warnings that followed

This commit is contained in:
Charles Pigott
2020-06-27 09:01:31 +01:00
parent 224acb78b0
commit 64b1c70fdd
7 changed files with 10 additions and 10 deletions

View File

@@ -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);