mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
🔨 excluded uncovered lines
These breaks were just added to silence a GCC warning - the GCC is right about warning as it cannot know that the expect function will not return in these two scenarios.
This commit is contained in:
@ -12822,14 +12822,14 @@ scan_number_done:
|
|||||||
{
|
{
|
||||||
// using "uninitialized" to avoid "expected" message
|
// using "uninitialized" to avoid "expected" message
|
||||||
expect(lexer::token_type::uninitialized);
|
expect(lexer::token_type::uninitialized);
|
||||||
break;
|
break; // LCOV_EXCL_LINE
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
// the last token was unexpected; we expected a value
|
// the last token was unexpected; we expected a value
|
||||||
expect(lexer::token_type::literal_or_value);
|
expect(lexer::token_type::literal_or_value);
|
||||||
break;
|
break; // LCOV_EXCL_LINE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user