[Mlir-commits] [mlir] 9f6649d - Add void cast to suppress -Wunused-member-variable on assert-only member

David Blaikie llvmlistbot at llvm.org
Sat Apr 3 14:21:25 PDT 2021


Author: David Blaikie
Date: 2021-04-03T14:03:43-07:00
New Revision: 9f6649dd1249fc5f5d8631d91324ad850a0ed1f0

URL: https://github.com/llvm/llvm-project/commit/9f6649dd1249fc5f5d8631d91324ad850a0ed1f0
DIFF: https://github.com/llvm/llvm-project/commit/9f6649dd1249fc5f5d8631d91324ad850a0ed1f0.diff

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

Added: 
    

Modified: 
    mlir/lib/Parser/Parser.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Parser/Parser.cpp b/mlir/lib/Parser/Parser.cpp
index 8d413ad9d5306..1587c0700216d 100644
--- a/mlir/lib/Parser/Parser.cpp
+++ b/mlir/lib/Parser/Parser.cpp
@@ -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))


        


More information about the Mlir-commits mailing list