From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=66.163.190.160; helo=sonic315-34.consmr.mail.ne1.yahoo.com; envelope-from=zenith432@users.sourceforge.net; receiver=edk2-devel@lists.01.org Received: from sonic315-34.consmr.mail.ne1.yahoo.com (sonic315-34.consmr.mail.ne1.yahoo.com [66.163.190.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 43E222214E32B for ; Sat, 9 Dec 2017 06:45:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1512831019; bh=nJKv/IjujZnh/JEVoaZwdDsSF0WoujbvUL4Hd9r3hqE=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=IXn1YRhyw9mP8QVV0unUgeS3N3zUruziunwJt4zPc8a0CLaqWHXoLgppBnKil+4ReKZvJSXAi4bPL+NFtsFi3jpewUeXeeDrMKYSUjAvyTV3SIfIM0NbLfEBF9E+kA3CuZ+iFqaqyh72YuV8/4weMkeeVNsKWQHpC21noJPoIjtuEKAtoSk1Vo5SbS9KC8z7GxDU/WODRDBDk4dWXJ71184f8kg3mssqOteiMnPV2zYymAkfUMjJ62M2D8ODkO2BCy3SIho1oHto5KaMrLsxAA1cSwEIs8ZQMmWsNUZJ9YGMdHfabii5FGfJmOnfySnFXB9YyeUB4Ilg7ctrqhMtpw== X-YMail-OSG: O.YriroVM1kkLI8Zcwt2HHYUrSZn34ghjO8etWktIrPUm_BvwPg6L57TShEWIxQ tKKJWmLKBX3bOIKvvRV7aCAcolVHPk5PCYX5_HHZCiEIZ23Y8ZO6DiciKsipg01cpSdcoNPGl84y NjwPwyQJJJ.dpgI8CZo_4KH4m.F3smv0n.XreJyugzbyWsXMBx5VDIiHHONNHeyuyXw2GSu1gEev G8aA2Z0JyArdeSVcXqfp0f.fV5LqW0s1_A39lthS5W7zq5FtxbOwDXPNKNOjrscyRuuh_stsoEay 4Pq.0beNiZ2MJbeLALnsH1FFuVwXxa7mSO6yzPJ91giSj1E1.8yb59UL.Y0elrqdrgFirMriScK. yPUHQxMP6hdzUajLrf8EyjApChKhyE2dawjKxMljlfA6bFdqjGPdnjm5K6Ah0yPaF1MQglMtsbq2 eRjF1Q60.fzF8_yYVYS5LEUop_OeCe4cb2hMb3srcErU0MFfQS70Jv5CjHuFoQVLvbi28uCsA5Fv GzqaIsj6wI4ZF.M5x3wAkR7p5Bq9wn4_lkVDQv15C Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Sat, 9 Dec 2017 14:50:19 +0000 Date: Sat, 9 Dec 2017 14:50:17 +0000 (UTC) From: Zenith432 Reply-To: Zenith432 To: Message-ID: <28976698.1739305.1512831017849@mail.yahoo.com> MIME-Version: 1.0 References: <28976698.1739305.1512831017849.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 2/4][Repost] BaseTools: eliminate unused expression result 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:45:44 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit This is a repost, subject truncated in previous send. --- Remove some code generated by antlr that causes clang to emit warning warning: expression result unused [-Wunused-value] Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zenith432 --- BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.c | 2 +- BaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.c b/BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.c index 8aaef794..d0185b8f 100644 --- a/BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.c +++ b/BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.c @@ -3252,7 +3252,7 @@ enum_def(fname) zzMake0; { if ( (LA(1)==ID)&&(isDLGmaxToken(LATEXT(1))) ) { - if (!(isDLGmaxToken(LATEXT(1))) ) {zzfailed_pred(" isDLGmaxToken(LATEXT(1))",0 /* report */, { 0; /* no user action */ } );} + if (!(isDLGmaxToken(LATEXT(1))) ) {zzfailed_pred(" isDLGmaxToken(LATEXT(1))",0 /* report */, { ; /* no user action */ } );} zzmatch(ID); zzCONSUME; { zzBLOCK(zztasp4); diff --git a/BaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c b/BaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c index d0a448d3..975558f0 100644 --- a/BaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c +++ b/BaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c @@ -1968,7 +1968,7 @@ ActionNode *p; (p->pred_fail == NULL ? /* MR23/MR27 */ "0 /* report */" : "1 /* user action */"), /* MR23/MR27 */ (p->pred_fail == NULL ? /* MR23 */ - "0; /* no user action */" : p->pred_fail)); /* MR23 */ + "; /* no user action */" : p->pred_fail)); /* MR23 */ tabs--; } else /* not a predicate */ @@ -2618,7 +2618,7 @@ TokNode *p; (a->pred_fail == NULL ? /* MR23/MR27 */ "0 /* report */" : "1 /* user action */"), /* MR23/MR27 */ (a->pred_fail == NULL ? /* MR23 */ - "0; /* no user action */" : a->pred_fail)); /* MR23 */ + "; /* no user action */" : a->pred_fail)); /* MR23 */ tabs--; /* Disabled in MR30 ************************************************************ And moved into genAction -- 2.14.3 (Apple Git-98)