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 BF45B2214E32C for ; Sat, 9 Dec 2017 06:46:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1512831082; bh=ma00ZipunsJHpMFHo+R5mWJTyjL263Umon4k2x8OjCA=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=f6zE2ufv95Qi7px1zgeb0gWciTtlmIVi9Cfhk+LZTvydWG2/icKB88YWZ2mk7HC3HThxfzO8BesKTChtuhLZxBtcbemmHfXxUHlAy5p7yaZQ7eIR79Rkgt1T8q4dHYPcd5Rt9K0vyTonWWBuf8A3KU6K3FZiqNsgeZQGHZubzzsSPDbP+yjdLq/kE2yr/K+M0C/InxPa7E8JKm8RuC2QYNe989xOM5pMSUZTNL3oEtzCvXkBjDAxI5EBcElIPNR8AmoL8tQB3Ha+22CUGdd6k0vzepprmJmkMiGwPXWlY7HNko18Sdi4ftQasDtY/foO6sFqzTZI69OYzMElsrnGXA== X-YMail-OSG: sdXe0ZsVM1kcsmDXad4dEfCB2To0aoK4oCvn1LdOeMb3g.aTdLH0X77FUhAM4oj atDv3k5Gd3sQWY7Gr0m7i8uvHLs9zNCyGL1URQAzmHc6OnaKfQ6p7R.DrbJ6YJGCtA2M7RX51SEl Tp__VLfcg_GYSOFEZgUgtKfz9xJQE_7cGxLK2DeDys958Zv8JVurdhwOOp4wyldOk9IdPEWJlLBd CvBXikb90ewaE6q_pXbVbHbe0oKT_ezTjjFHip0bHYMTVhs8uEi2SRcdobYuaFlD65WZee04tMB. k1ibj4Fx7VpStwUAmVnKJYD_dmjM_IPZaz8GCPrmp3n9HyxEvFQiNqxqfhRnX4k4WT1PZVjoGcCn SJTiWJya2IJsajz1YpM11a4Wk0xsAC37AuLe3Lm0gEuKATEt5rcRiF_H7MOMu6mV27_W56yeh8jY z_1fMSjIzNmml9gBT5IcJuqnvCUDXpULqdHswTvI.PlRXYiofDLbMjWTzp74pmKEmZDc7nBXX6YK 0WkmZyUubX1g5ESOpRg8.nGmSr7DMMyiPQkUJITee Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Sat, 9 Dec 2017 14:51:22 +0000 Date: Sat, 9 Dec 2017 14:51:20 +0000 (UTC) From: Zenith432 Reply-To: Zenith432 To: Message-ID: <1562401802.1737396.1512831080690@mail.yahoo.com> MIME-Version: 1.0 References: <1562401802.1737396.1512831080690.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][Repost] BaseTools: silence equality comparison with extraneous parentheses warning in code generated by antlr 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:46:48 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit This is a repost, subject truncated in previous send. --- 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)