Skip to content

Commit 5a9b74d

Browse files
[mlir] Fix a warning
This patch fixes: mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp:309:7: error: variable 'errs' set but not used [-Werror,-Wunused-but-set-variable]
1 parent 58c6d44 commit 5a9b74d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ void validateSameOperandsAndResultRankTrait(Region &region) {
315315
if (op.hasTrait<OpTrait::SameOperandsAndResultRank>()) {
316316
if (OpTrait::impl::verifySameOperandsAndResultRank(&op).failed()) {
317317
errs++;
318+
(void)errs;
318319
}
319320
}
320321
WhileOp whileOp = dyn_cast<WhileOp>(op);

0 commit comments

Comments
 (0)