From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=66.163.189.160; helo=sonic314-34.consmr.mail.ne1.yahoo.com; envelope-from=zenith432@users.sourceforge.net; receiver=edk2-devel@lists.01.org Received: from sonic314-34.consmr.mail.ne1.yahoo.com (sonic314-34.consmr.mail.ne1.yahoo.com [66.163.189.160]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 590C72214E32C for ; Sat, 9 Dec 2017 06:39:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1512830619; bh=YHBrWrEqVKkavDrNTpUNJOsqjdyghoWMfm58lFsjnZE=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=qrohvqNVX9RuwugTSRrZ9Q+mhpQrDa7uBPlMDFUpCuiyP+vZ7M+EzhNF0rroQUm6GAqhKeyrqSy2awwpC1fAqPqxSAyK0XGo3MDwEt10vK2rtZRkFbxAz9Ia8uBRdDkKGZ0rWp/mE2qAikMigh+sgETkEnAj+vXSWIFvEeGvayu3WfQigP/0Zv94QrUGVzVFMuzQf4Gns5HYA3WqAK+ldigKXBSKL0mhrHOJoavOyHVIk8EqMUV2rMDLobPqsslip0ICIzUhkGK9U0ldbUGCGn2Ublm+LuXfZuGoGhPov6JPYJYKBGbyDBsrMqm6B0BQJqWj8Fcl/HvYEbwSJMFeZw== X-YMail-OSG: ne.g13cVM1k9kS6P3el2ftMygK4eS0YpQQu8lci7hClCeRBjR2vFK7Cn6sO2ZSr VskMrlV.p43ghI3qKjXHPZNmXLg3ejq7nKA0qhOzog4zLv91Qcf1i6oKlFIpBBLWfyvGAsYTLka7 ow_.uD6FwI.gGGf98gXNFGo4K3gMamtowrkP2t6GNbsC9Qd6aeRpDe3LYLLdLSDy3yzE6.WeWIzC HIS7W310div2ezebJUSPPUwTPvKtqkBEjzLx_JN45wLOt4jkieITu6lQWMXW8XcHuUw4LpP1qcU9 FQCkeJhGunpwLENMOi90cNJS7qCZrMRX69eY1ZIbcjU0.H6eK1hrKzQ1LUYNaWPtf55Dr6UYKnR2 .dty1Rg73NOAepEciJYH2AqsffnHpJGkxdJQgsVE1asC_YIu7YGf2Lu_U5.Pbr..RDKBGT1QpwfK 0ZlS6rru7YOTTYEUZySPqkZMsnvxZoP0wmUhyiAg1ENsRNbqmu2qw8H.0CeGj_rSgvRQW04MN7iz KCmhjjSjTo.sFcJnRPS6cH4l._TXLdtL8WsWQYw2. Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Sat, 9 Dec 2017 14:43:39 +0000 Date: Sat, 9 Dec 2017 14:43:35 +0000 (UTC) From: Zenith432 Reply-To: Zenith432 To: Message-ID: <707551936.1765555.1512830615619@mail.yahoo.com> MIME-Version: 1.0 References: <707551936.1765555.1512830615619.ref@mail.yahoo.com> X-Mailer: WebService/1.1.11051 YahooMailBasic Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7 Subject: [PATCH 3/4] BaseTools: silence equality comparison with extraneous X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Dec 2017 14:39:04 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 --- BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.c | 1 + BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.g | 1 + BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c | 2 ++ BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.g | 4 +++- 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.c b/BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.c index d0185b8f..8088b3c2 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 e6eda601..e01728a1 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 af07c27e..51f79759 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 58ca1106..0e3fe6d9 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 */ -- 2.14.3 (Apple Git-98)