From 569f5ac8edcb8d1af2c83a38354206f00ad1d553 Mon Sep 17 00:00:00 2001 From: Evan Teran Date: Mon, 10 Nov 2025 15:38:52 -0500 Subject: [PATCH] I'm not sure WHY this was possibly unused, perhaps it was an optimization that elided empty class construction, but chaning Null to an enumeration fixes that warning --- lib/include/cpp-json/json_value.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/include/cpp-json/json_value.h b/lib/include/cpp-json/json_value.h index c8fd1ec..5b38567 100644 --- a/lib/include/cpp-json/json_value.h +++ b/lib/include/cpp-json/json_value.h @@ -373,11 +373,11 @@ class value { } value(const std::nullptr_t &) - : storage_(Null()), type_(type_null) { + : storage_(Null::Value), type_(type_null) { } value() - : storage_(Null()), type_(type_null) { + : storage_(Null::Value), type_(type_null) { } public: @@ -548,7 +548,9 @@ class value { } private: - struct Null {}; + enum class Null { + Value, + }; enum class Boolean { False,