- Add missing GCCPRINTF in scanner code.

This will help spotting erroneous usage of FScanner::{ScriptError,ScriptMessage} and FScriptPosition::Message.
This commit is contained in:
Edoardo Prezioso 2016-12-10 12:55:49 +01:00 committed by Christoph Oelckers
parent 7d4a5898ac
commit b78b8662dc

View file

@ -61,8 +61,8 @@ public:
int MustMatchString(const char * const *strings, size_t stride = sizeof(char*)); int MustMatchString(const char * const *strings, size_t stride = sizeof(char*));
int GetMessageLine(); int GetMessageLine();
void ScriptError(const char *message, ...); void ScriptError(const char *message, ...) GCCPRINTF(2,3);
void ScriptMessage(const char *message, ...); void ScriptMessage(const char *message, ...) GCCPRINTF(2,3);
bool isText(); bool isText();
@ -155,7 +155,7 @@ struct FScriptPosition
FScriptPosition(FString fname, int line); FScriptPosition(FString fname, int line);
FScriptPosition(FScanner &sc); FScriptPosition(FScanner &sc);
FScriptPosition &operator=(const FScriptPosition &other); FScriptPosition &operator=(const FScriptPosition &other);
void Message(int severity, const char *message,...) const; void Message(int severity, const char *message,...) const GCCPRINTF(3,4);
static void ResetErrorCounter() static void ResetErrorCounter()
{ {
WarnCounter = 0; WarnCounter = 0;