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 B7B352214E32C for ; Sat, 9 Dec 2017 06:38:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1512830574; bh=s8PRyXxdJwLKr8iUIgSzdwnqA1pmFqIAf/5bBA5Ypqk=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=n9cIILN03CSA9CnLXzvnH6WvlGnmOw0+3W2opjNJSdfEP1qJ9D+RKiggCCMpgxnF33uNgJ/j4uOvaRpZXeag4stGo+67QGY7GHGV9EN3T2aumiWe4vIUGcV+B74/l4yp3liwMZtvj1NDs8T6F5qXHGhvZ1qt9UyzM3JbxPtGXJQ09XJIgb0RyEqaQp+t2U7FZ46eIBT7J5SsU51AMJKRn8umYFhIeuD9c50dXeIMq9BuW3kH08s+gCFisbri32GSmEPot36u11ANkMwFzaZs9T/ZweuPxIj7UUpdH67h1ZozKSWEtFRYLo4zO11flC8Z36qT8oQt6nhFzlFJT+krCw== X-YMail-OSG: BeAvuPwVM1kBQBsrrvb1nfQT1grKLH5_XV.pHwkOLYr6KCySVWB__P2eyyncayU L47TB.OKPaXt4ZpdDEDArrcHckMpxFSS2ifh7hFG76KtydRHz1.6GK7SMFvquueZxm0iqjITrXAQ pK974ifx2fJ52ythZxsHyRp5Eco5VPZB5yiqz..B1d8muf8EE.P2RORomS3Nw2u1HnBMuuAAZwuE AvSfbLTZwf5iLOZyuliINsneHPu.AFmd2UqU4Bn_PE1ucyf5YJWcCMDsvI5kFn1yT8NUFv97VkiD oBpXbIbSXBBKeHhRO.CpdgeucZQtsXtkNg7sMpL5fnzkzswa_b1FoL2764KKcM.gpTlDuRbn5.rb vzqvFgHRyuINSuU6ykyWpnTYbmPlDA.pVqENtQV1CVLTALlNQEZv5u4BNmGPUGndgP3OrZMroSKm dSsh55SAAqF6zqhupYJ0B1n9AkENItSAqGBWIDEhxpk7OV0MW38pvq2sJ1v7FtxTtyX5ZTyo6quA 6giruL1qJ5mFEqWUjHDiYSrG6MhHFlJjNmlGNuoEJ Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Sat, 9 Dec 2017 14:42:54 +0000 Date: Sat, 9 Dec 2017 14:42:50 +0000 (UTC) From: Zenith432 Reply-To: Zenith432 To: Message-ID: <1051764655.1736978.1512830570107@mail.yahoo.com> MIME-Version: 1.0 References: <1051764655.1736978.1512830570107.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] BaseTools: eliminate unused expression result in code 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:38:21 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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)