Add void cast to suppress -Wunused-member-variable on assert-only member

This commit is contained in:
David Blaikie 2021-04-03 14:01:15 -07:00
parent 499571ea83
commit 9f6649dd12
1 changed files with 1 additions and 0 deletions

View File

@ -1492,6 +1492,7 @@ public:
}
// Try to parse the region.
(void)isIsolatedFromAbove;
assert((!enableNameShadowing || isIsolatedFromAbove) &&
"name shadowing is only allowed on isolated regions");
if (parser.parseRegion(region, regionArguments, enableNameShadowing))