mirror of
https://github.com/nlohmann/json
synced 2024-12-26 02:21:02 +00:00
Kill unused argument warnings in GCC/clang
This commit is contained in:
parent
19918b948d
commit
81b7079255
@ -7374,7 +7374,7 @@ basic_json_parser_64:
|
|||||||
|
|
||||||
@return the floating point number
|
@return the floating point number
|
||||||
*/
|
*/
|
||||||
long double str_to_float_t(long double* type, char** endptr) const
|
long double str_to_float_t(long double* /* type */, char** endptr) const
|
||||||
{
|
{
|
||||||
return std::strtold(reinterpret_cast<typename string_t::const_pointer>(m_start), endptr);
|
return std::strtold(reinterpret_cast<typename string_t::const_pointer>(m_start), endptr);
|
||||||
}
|
}
|
||||||
@ -7393,7 +7393,7 @@ basic_json_parser_64:
|
|||||||
|
|
||||||
@return the floating point number
|
@return the floating point number
|
||||||
*/
|
*/
|
||||||
double str_to_float_t(double* type, char** endptr) const
|
double str_to_float_t(double* /* type */, char** endptr) const
|
||||||
{
|
{
|
||||||
return std::strtod(reinterpret_cast<typename string_t::const_pointer>(m_start), endptr);
|
return std::strtod(reinterpret_cast<typename string_t::const_pointer>(m_start), endptr);
|
||||||
}
|
}
|
||||||
@ -7412,7 +7412,7 @@ basic_json_parser_64:
|
|||||||
|
|
||||||
@return the floating point number
|
@return the floating point number
|
||||||
*/
|
*/
|
||||||
float str_to_float_t(float* type, char** endptr) const
|
float str_to_float_t(float* /* type */, char** endptr) const
|
||||||
{
|
{
|
||||||
return std::strtof(reinterpret_cast<typename string_t::const_pointer>(m_start), endptr);
|
return std::strtof(reinterpret_cast<typename string_t::const_pointer>(m_start), endptr);
|
||||||
}
|
}
|
||||||
|
@ -7056,7 +7056,7 @@ class basic_json
|
|||||||
|
|
||||||
@return the floating point number
|
@return the floating point number
|
||||||
*/
|
*/
|
||||||
long double str_to_float_t(long double* type, char** endptr) const
|
long double str_to_float_t(long double* /* type */, char** endptr) const
|
||||||
{
|
{
|
||||||
return std::strtold(reinterpret_cast<typename string_t::const_pointer>(m_start), endptr);
|
return std::strtold(reinterpret_cast<typename string_t::const_pointer>(m_start), endptr);
|
||||||
}
|
}
|
||||||
@ -7075,7 +7075,7 @@ class basic_json
|
|||||||
|
|
||||||
@return the floating point number
|
@return the floating point number
|
||||||
*/
|
*/
|
||||||
double str_to_float_t(double* type, char** endptr) const
|
double str_to_float_t(double* /* type */, char** endptr) const
|
||||||
{
|
{
|
||||||
return std::strtod(reinterpret_cast<typename string_t::const_pointer>(m_start), endptr);
|
return std::strtod(reinterpret_cast<typename string_t::const_pointer>(m_start), endptr);
|
||||||
}
|
}
|
||||||
@ -7094,7 +7094,7 @@ class basic_json
|
|||||||
|
|
||||||
@return the floating point number
|
@return the floating point number
|
||||||
*/
|
*/
|
||||||
float str_to_float_t(float* type, char** endptr) const
|
float str_to_float_t(float* /* type */, char** endptr) const
|
||||||
{
|
{
|
||||||
return std::strtof(reinterpret_cast<typename string_t::const_pointer>(m_start), endptr);
|
return std::strtof(reinterpret_cast<typename string_t::const_pointer>(m_start), endptr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user