Skip to content

Commit c000bd4

Browse files
authored
Revert "[mlir] Silence a few -Wunused-but-set-parameter warnings" (#68667)
A cmake patch append compile options `-Wno-unused-but-set-parameter` is merged. This reverts commit 82ae83a.
1 parent 1cea309 commit c000bd4

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

mlir/include/mlir/IR/Attributes.h

-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,6 @@ struct CastInfo<To, From,
409409
/// Return a constant true instead of a dynamic true when casting to self or
410410
/// up the hierarchy.
411411
if constexpr (std::is_base_of_v<To, From>) {
412-
(void)ty;
413412
return true;
414413
} else {
415414
return To::classof(ty);

mlir/include/mlir/IR/Types.h

-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,6 @@ struct CastInfo<
406406
/// Return a constant true instead of a dynamic true when casting to self or
407407
/// up the hierarchy.
408408
if constexpr (std::is_base_of_v<To, From>) {
409-
(void)ty;
410409
return true;
411410
} else {
412411
return To::classof(ty);

mlir/include/mlir/IR/Value.h

-1
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,6 @@ struct CastInfo<
605605
/// Return a constant true instead of a dynamic true when casting to self or
606606
/// up the hierarchy.
607607
if constexpr (std::is_base_of_v<To, From>) {
608-
(void)ty;
609608
return true;
610609
} else {
611610
return To::classof(ty);

0 commit comments

Comments
 (0)