diff --git a/tests/src/unit-bson.cpp b/tests/src/unit-bson.cpp index 09321e3d5..8e2d00cbf 100644 --- a/tests/src/unit-bson.cpp +++ b/tests/src/unit-bson.cpp @@ -1311,6 +1311,8 @@ TEST_CASE("BSON declared document size bounds the content") // records the events that a SAX parser receives struct recorder : nlohmann::json_sax { + // GCC's -Weffc++ wants the member initialized in the member initialization list + // NOLINTNEXTLINE(readability-redundant-member-init) std::string events {}; bool null() override