diff --git a/include/nlohmann/json.hpp b/include/nlohmann/json.hpp index fe496be01..301dc38b3 100644 --- a/include/nlohmann/json.hpp +++ b/include/nlohmann/json.hpp @@ -915,9 +915,6 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec #if JSON_DIAGNOSTIC_POSITIONS dst.start_position = src.start_position; dst.end_position = src.end_position; -#else - static_cast(src); - static_cast(dst); #endif } diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 265322a96..937519fa5 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -24693,9 +24693,6 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec #if JSON_DIAGNOSTIC_POSITIONS dst.start_position = src.start_position; dst.end_position = src.end_position; -#else - static_cast(src); - static_cast(dst); #endif }