From 9f72b0519f8e328c8c4c73e8583c68343a2188f6 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 17 Jul 2023 09:21:10 +0200 Subject: [PATCH] Unittest: Work around warning for unused parameter Amends 7fada70e8f. Change-Id: Ic47526a497c67dab48903b6500a37bab742034fd Reviewed-by: Marco Bubke --- tests/unit/tests/printers/gtest-creator-printing.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/unit/tests/printers/gtest-creator-printing.cpp b/tests/unit/tests/printers/gtest-creator-printing.cpp index 9a5c000c390..5a2adf5dd07 100644 --- a/tests/unit/tests/printers/gtest-creator-printing.cpp +++ b/tests/unit/tests/printers/gtest-creator-printing.cpp @@ -220,6 +220,7 @@ std::ostream &operator<<(std::ostream &out, const ValueView &value) } namespace { +#if 0 Utils::SmallStringView operationText(int operation) { switch (operation) { @@ -236,7 +237,6 @@ Utils::SmallStringView operationText(int operation) std::ostream &operator<<(std::ostream &out, sqlite3_changeset_iter *iter) { -#if 0 out << "("; const char *tableName = nullptr; @@ -279,9 +279,9 @@ std::ostream &operator<<(std::ostream &out, sqlite3_changeset_iter *iter) } out << "})"; -#endif return out; } +#endif const char *toText(Operation operation) { @@ -316,6 +316,7 @@ const char *toText(LockingMode lockingMode) std::ostream &operator<<(std::ostream &out, const SessionChangeSet &changeset) { + Q_UNUSED(changeset) #if 0 sqlite3_changeset_iter *iter = nullptr; sqlite3changeset_start(&iter, changeset.size(), const_cast(changeset.data()));