Some code generated by antlr causes clang to emit warning
warning: equality comparison with extraneous parentheses
[-Wparentheses-equality]
The warning is suppressed specifically for clang without affecting other
compilers.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zenith432 <zenith432@users.sourceforge.net>
Reviewed-by: Liming Gao <liming.gao@intel.com>
#pragma warn -aus /* unused assignment of 'xxx' */\r
#endif\r
\r
+#pragma clang diagnostic ignored "-Wparentheses-equality"\r
\r
#ifdef __USE_PROTOS\r
static void chkToken(char *, char *, char *, int);\r
#pragma warn -aus /* unused assignment of 'xxx' */\r
#endif\r
\r
+#pragma clang diagnostic ignored "-Wparentheses-equality"\r
\r
#ifdef __USE_PROTOS\r
static void chkToken(char *, char *, char *, int);\r
#pragma warn -aus /* unused assignment of 'xxx' */\r
#endif\r
\r
+#pragma clang diagnostic ignored "-Wparentheses-equality"\r
+\r
int action_no = 0; /* keep track of actions outputted */\r
int nfa_allocated = 0; /* keeps track of number of nfa nodes */\r
nfa_node **nfa_array = NULL;/* root of binary tree that stores nfa array */\r
#pragma warn -aus /* unused assignment of 'xxx' */\r
#endif\r
\r
-int action_no = 0; /* keep track of actions outputed */\r
+#pragma clang diagnostic ignored "-Wparentheses-equality"\r
+\r
+int action_no = 0; /* keep track of actions outputted */\r
int nfa_allocated = 0; /* keeps track of number of nfa nodes */\r
nfa_node **nfa_array = NULL;/* root of binary tree that stores nfa array */\r
nfa_node nfa_model_node; /* model to initialize new nodes */\r