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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user