mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- Add missing GCCPRINTF in scanner code.
This will help spotting erroneous usage of FScanner::{ScriptError,ScriptMessage} and FScriptPosition::Message.
This commit is contained in:
parent
7d4a5898ac
commit
b78b8662dc
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue