diff options
author | zenith432 <zenith432@users.sourceforge.net> | 2017-12-09 10:41:48 +0000 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-01-02 20:37:32 +0800 |
commit | 4e97974c1e52c2fcd2640398b17266dff001b699 (patch) | |
tree | 70a6f3e73b00b2dfe6d5a43023c59e9102e18eb9 /BaseTools/Source/C/VfrCompile/Pccts | |
parent | a5b84d3480b4cebf06f61cbe4c84c5de4d1ce445 (diff) | |
download | edk2-4e97974c1e52c2fcd2640398b17266dff001b699.zip edk2-4e97974c1e52c2fcd2640398b17266dff001b699.tar.gz edk2-4e97974c1e52c2fcd2640398b17266dff001b699.tar.bz2 |
BaseTools: silence parentheses-equality warning
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>
Diffstat (limited to 'BaseTools/Source/C/VfrCompile/Pccts')
4 files changed, 7 insertions, 1 deletions
diff --git a/BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.c b/BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.c index d0185b8..8088b3c 100644 --- a/BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.c +++ b/BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.c @@ -41,6 +41,7 @@ ANTLR_INFO #pragma warn -aus /* unused assignment of 'xxx' */
#endif
+#pragma clang diagnostic ignored "-Wparentheses-equality"
#ifdef __USE_PROTOS
static void chkToken(char *, char *, char *, int);
diff --git a/BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.g b/BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.g index e6eda60..e01728a 100644 --- a/BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.g +++ b/BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.g @@ -53,6 +53,7 @@ #pragma warn -aus /* unused assignment of 'xxx' */
#endif
+#pragma clang diagnostic ignored "-Wparentheses-equality"
#ifdef __USE_PROTOS
static void chkToken(char *, char *, char *, int);
diff --git a/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c b/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c index af07c27..51f7975 100644 --- a/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c +++ b/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c @@ -39,6 +39,8 @@ Fix for Borland C++ 4.x & 5.x compiling with ALL warnings enabled #pragma warn -aus /* unused assignment of 'xxx' */
#endif
+#pragma clang diagnostic ignored "-Wparentheses-equality"
+
int action_no = 0; /* keep track of actions outputted */
int nfa_allocated = 0; /* keeps track of number of nfa nodes */
nfa_node **nfa_array = NULL;/* root of binary tree that stores nfa array */
diff --git a/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.g b/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.g index 58ca110..0e3fe6d 100644 --- a/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.g +++ b/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.g @@ -42,7 +42,9 @@ #pragma warn -aus /* unused assignment of 'xxx' */
#endif
-int action_no = 0; /* keep track of actions outputed */
+#pragma clang diagnostic ignored "-Wparentheses-equality"
+
+int action_no = 0; /* keep track of actions outputted */
int nfa_allocated = 0; /* keeps track of number of nfa nodes */
nfa_node **nfa_array = NULL;/* root of binary tree that stores nfa array */
nfa_node nfa_model_node; /* model to initialize new nodes */
|