From 81b70792559ee5db8c6e0de2d1ac3c59ccab66d2 Mon Sep 17 00:00:00 2001 From: Trevor Welsby Date: Mon, 25 Jan 2016 02:13:39 +1000 Subject: [PATCH] Kill unused argument warnings in GCC/clang --- src/json.hpp | 6 +++--- src/json.hpp.re2c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index ad4c65f6..1a81a3e4 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -7374,7 +7374,7 @@ basic_json_parser_64: @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(m_start), endptr); } @@ -7393,7 +7393,7 @@ basic_json_parser_64: @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(m_start), endptr); } @@ -7412,7 +7412,7 @@ basic_json_parser_64: @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(m_start), endptr); } diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 28f7d498..243e9d36 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -7056,7 +7056,7 @@ class basic_json @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(m_start), endptr); } @@ -7075,7 +7075,7 @@ class basic_json @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(m_start), endptr); } @@ -7094,7 +7094,7 @@ class basic_json @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(m_start), endptr); }