fix fallthrough warnings

This commit is contained in:
Jonas Wittbrodt 2021-08-25 14:27:53 +02:00
parent 0f0be71952
commit 7085630ad0
2 changed files with 4 additions and 8 deletions

View File

@ -70,10 +70,9 @@ void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val)
val = std::numeric_limits<ArithmeticType>::quiet_NaN(); val = std::numeric_limits<ArithmeticType>::quiet_NaN();
break; break;
} }
// [[fallthrough]];
// LCOV_EXCL_STOP // LCOV_EXCL_STOP
JSON_HEDLEY_FALL_THROUGH;
} }
case value_t::object: case value_t::object:
case value_t::array: case value_t::array:
case value_t::string: case value_t::string:
@ -377,10 +376,9 @@ void from_json(const BasicJsonType& j, ArithmeticType& val)
val = std::numeric_limits<ArithmeticType>::quiet_NaN(); val = std::numeric_limits<ArithmeticType>::quiet_NaN();
break; break;
} }
// [[fallthrough]];
// LCOV_EXCL_STOP // LCOV_EXCL_STOP
JSON_HEDLEY_FALL_THROUGH;
} }
case value_t::object: case value_t::object:
case value_t::array: case value_t::array:
case value_t::string: case value_t::string:

View File

@ -3933,10 +3933,9 @@ void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val)
val = std::numeric_limits<ArithmeticType>::quiet_NaN(); val = std::numeric_limits<ArithmeticType>::quiet_NaN();
break; break;
} }
// [[fallthrough]];
// LCOV_EXCL_STOP // LCOV_EXCL_STOP
JSON_HEDLEY_FALL_THROUGH;
} }
case value_t::object: case value_t::object:
case value_t::array: case value_t::array:
case value_t::string: case value_t::string:
@ -4240,10 +4239,9 @@ void from_json(const BasicJsonType& j, ArithmeticType& val)
val = std::numeric_limits<ArithmeticType>::quiet_NaN(); val = std::numeric_limits<ArithmeticType>::quiet_NaN();
break; break;
} }
// [[fallthrough]];
// LCOV_EXCL_STOP // LCOV_EXCL_STOP
JSON_HEDLEY_FALL_THROUGH;
} }
case value_t::object: case value_t::object:
case value_t::array: case value_t::array:
case value_t::string: case value_t::string: