diff --git a/include/nlohmann/detail/conversions/from_json.hpp b/include/nlohmann/detail/conversions/from_json.hpp index f7dd044b7..ce37730c8 100644 --- a/include/nlohmann/detail/conversions/from_json.hpp +++ b/include/nlohmann/detail/conversions/from_json.hpp @@ -70,10 +70,9 @@ void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val) val = std::numeric_limits::quiet_NaN(); break; } - // [[fallthrough]]; // LCOV_EXCL_STOP + JSON_HEDLEY_FALL_THROUGH; } - case value_t::object: case value_t::array: case value_t::string: @@ -377,10 +376,9 @@ void from_json(const BasicJsonType& j, ArithmeticType& val) val = std::numeric_limits::quiet_NaN(); break; } - // [[fallthrough]]; // LCOV_EXCL_STOP + JSON_HEDLEY_FALL_THROUGH; } - case value_t::object: case value_t::array: case value_t::string: diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 2122a2d2d..6f3753cf3 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -3933,10 +3933,9 @@ void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val) val = std::numeric_limits::quiet_NaN(); break; } - // [[fallthrough]]; // LCOV_EXCL_STOP + JSON_HEDLEY_FALL_THROUGH; } - case value_t::object: case value_t::array: case value_t::string: @@ -4240,10 +4239,9 @@ void from_json(const BasicJsonType& j, ArithmeticType& val) val = std::numeric_limits::quiet_NaN(); break; } - // [[fallthrough]]; // LCOV_EXCL_STOP + JSON_HEDLEY_FALL_THROUGH; } - case value_t::object: case value_t::array: case value_t::string: