Skip to content

Commit bc0cdef

Browse files
[mlir] Fix warnings
This patch fixes: mlir/lib/Dialect/Mesh/Transforms/ShardingPropagation.cpp:73:27: error: unused function 'operator<<' [-Werror,-Wunused-function] mlir/lib/Dialect/Mesh/Transforms/ShardingPropagation.cpp:97:27: error: unused function 'operator<<' [-Werror,-Wunused-function]
1 parent 465bfd4 commit bc0cdef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mlir/lib/Dialect/Mesh/Transforms/ShardingPropagation.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ static llvm::raw_ostream &operator<<(llvm::raw_ostream &stream,
7070
return printRange(stream, vec);
7171
}
7272

73-
static llvm::raw_ostream &operator<<(llvm::raw_ostream &stream,
74-
const ShardingOption &v) {
73+
[[maybe_unused]] static llvm::raw_ostream &operator<<(llvm::raw_ostream &stream,
74+
const ShardingOption &v) {
7575
return stream << "{empty = " << v.empty << ", mesh" << v.mesh
7676
<< ", shardingArray = " << v.shardingArray << "}";
7777
}
@@ -94,8 +94,8 @@ static llvm::raw_ostream &operator<<(llvm::raw_ostream &stream,
9494
return printTuple(stream, t, std::index_sequence_for<Ts...>{});
9595
}
9696

97-
static llvm::raw_ostream &operator<<(llvm::raw_ostream &stream,
98-
ReshardingRquirementKind v) {
97+
[[maybe_unused]] static llvm::raw_ostream &
98+
operator<<(llvm::raw_ostream &stream, ReshardingRquirementKind v) {
9999
return stream << static_cast<int>(v);
100100
}
101101

0 commit comments

Comments
 (0)