From 8036719f45ac8e72ba6ad287cae046a3001ebd41 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Sat, 10 Dec 2016 13:07:19 +0100 Subject: [PATCH] - Add GCCPRINTF to ZScript compiler code. This will help spotting errors in code using ZCCCompiler::{Warn,Error}. --- src/scripting/zscript/zcc_compile.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripting/zscript/zcc_compile.h b/src/scripting/zscript/zcc_compile.h index 8b3a9f5f1..f9ebc62d4 100644 --- a/src/scripting/zscript/zcc_compile.h +++ b/src/scripting/zscript/zcc_compile.h @@ -135,8 +135,8 @@ private: ZCC_ExprTypeRef *NodeFromSymbolType(PSymbolType *sym, ZCC_Expression *idnode); - void Warn(ZCC_TreeNode *node, const char *msg, ...); - void Error(ZCC_TreeNode *node, const char *msg, ...); + void Warn(ZCC_TreeNode *node, const char *msg, ...) GCCPRINTF(3,4); + void Error(ZCC_TreeNode *node, const char *msg, ...) GCCPRINTF(3,4); void MessageV(ZCC_TreeNode *node, const char *txtcolor, const char *msg, va_list argptr); FxExpression *ConvertAST(PStruct *cclass, ZCC_TreeNode *ast);