Skip to content

Commit 6c8b418

Browse files
committed
Mark operator<< as maybe unused
1 parent d7ea77c commit 6c8b418

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

mlir/unittests/translation/test_translation.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ struct TestCaseUnitary {
312312

313313
} // namespace
314314

315-
static std::ostream& operator<<(std::ostream& os,
316-
const TestCaseUnitary& testCase) {
315+
[[maybe_unused]] static std::ostream&
316+
operator<<(std::ostream& os, const TestCaseUnitary& testCase) {
317317
return os << testCase.name;
318318
}
319319

@@ -605,8 +605,8 @@ struct TestCaseIfRegister {
605605

606606
} // namespace
607607

608-
static std::ostream& operator<<(std::ostream& os,
609-
const TestCaseIfRegister& testCase) {
608+
[[maybe_unused]] static std::ostream&
609+
operator<<(std::ostream& os, const TestCaseIfRegister& testCase) {
610610
return os << testCase.name;
611611
}
612612

@@ -870,8 +870,8 @@ struct TestCaseIfBit {
870870

871871
} // namespace
872872

873-
static std::ostream& operator<<(std::ostream& os,
874-
const TestCaseIfBit& testCase) {
873+
[[maybe_unused]] static std::ostream&
874+
operator<<(std::ostream& os, const TestCaseIfBit& testCase) {
875875
return os << testCase.name;
876876
}
877877

@@ -963,8 +963,8 @@ struct TestCaseIfElseBit {
963963

964964
} // namespace
965965

966-
static std::ostream& operator<<(std::ostream& os,
967-
const TestCaseIfElseBit& testCase) {
966+
[[maybe_unused]] static std::ostream&
967+
operator<<(std::ostream& os, const TestCaseIfElseBit& testCase) {
968968
return os << testCase.name;
969969
}
970970

0 commit comments

Comments
 (0)