mirror of
https://github.com/nlohmann/json.git
synced 2026-10-06 22:47:13 +00:00
All: fix warnings when compiling with -Wswitch-enum
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
This commit is contained in:
1 parent
910fabf8f0
commit
44d60f8d14
7 files changed
+268
No files matched your search
@@ -334,6 +334,13 @@ class parser
|
||||
parse_error::create(101, m_lexer.get_position(), exception_message(token_type::uninitialized, "value"), BasicJsonType()));
|
||||
}
|
||||
|
||||
case token_type::uninitialized:
|
||||
case token_type::end_array:
|
||||
case token_type::end_object:
|
||||
case token_type::name_separator:
|
||||
case token_type::value_separator:
|
||||
case token_type::end_of_input:
|
||||
case token_type::literal_or_value:
|
||||
default: // the last token was unexpected
|
||||
{
|
||||
return sax->parse_error(m_lexer.get_position(),
|
||||
|
||||
Reference in new issue
Block a user