1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-27 00:41:05 +03:00

🔨 fixed some pedantic GCC warnings

This commit is contained in:
Niels Lohmann
2017-07-07 22:41:22 +02:00
parent 32065c8045
commit 8b123107c0
22 changed files with 747 additions and 744 deletions

View File

@ -2268,7 +2268,7 @@ class basic_json
object | `{}`
array | `[]`
@param[in] value_type the type of the value to create
@param[in] v the type of the value to create
@complexity Constant.
@ -2277,8 +2277,8 @@ class basic_json
@since version 1.0.0
*/
basic_json(const value_t value_type)
: m_type(value_type), m_value(value_type)
basic_json(const value_t v)
: m_type(v), m_value(v)
{
assert_invariant();
}
@ -12881,12 +12881,14 @@ scan_number_done:
{
// using "uninitialized" to avoid "expected" message
expect(lexer::token_type::uninitialized);
break;
}
default:
{
// the last token was unexpected; we expected a value
expect(lexer::token_type::literal_or_value);
break;
}
}