Skip to content

Commit

Permalink
Add void cast to suppress -Wunused-member-variable on assert-only member
Browse files Browse the repository at this point in the history
  • Loading branch information
dwblaikie committed Apr 3, 2021
1 parent 499571e commit 9f6649d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mlir/lib/Parser/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1492,6 +1492,7 @@ class CustomOpAsmParser : public OpAsmParser {
}

// Try to parse the region.
(void)isIsolatedFromAbove;
assert((!enableNameShadowing || isIsolatedFromAbove) &&
"name shadowing is only allowed on isolated regions");
if (parser.parseRegion(region, regionArguments, enableNameShadowing))
Expand Down

0 comments on commit 9f6649d

Please sign in to comment.