From da83aa92c88aa4bcacc3bc29cef59fec5d257543 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Wed, 28 Oct 2026 07:11:04 +0100 Subject: [PATCH] Reconcile -Weffc++ and readability-redundant-member-init in unit-bson.cpp (#5953) --- tests/src/unit-bson.cpp | 2 ++ 1 file changed, 2 insertions(+) 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