diff options
author | zenith432 <zenith432@users.sourceforge.net> | 2017-12-09 10:14:41 +0000 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-01-02 20:37:26 +0800 |
commit | a5b84d3480b4cebf06f61cbe4c84c5de4d1ce445 (patch) | |
tree | 49c4fd541a19c6b796f1df9722180ab140f1e4e8 /BaseTools/Source/C/VfrCompile/Pccts | |
parent | 8b13e18143cc4199eedd2597572ade34061a5c33 (diff) | |
download | edk2-a5b84d3480b4cebf06f61cbe4c84c5de4d1ce445.zip edk2-a5b84d3480b4cebf06f61cbe4c84c5de4d1ce445.tar.gz edk2-a5b84d3480b4cebf06f61cbe4c84c5de4d1ce445.tar.bz2 |
BaseTools: eliminate unused expression result
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 <zenith432@users.sourceforge.net>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/C/VfrCompile/Pccts')
-rw-r--r-- | BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.c | 2 | ||||
-rw-r--r-- | 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 8aaef79..d0185b8 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 d0a448d..975558f 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
|