From b3ac36db9309878cbff0d16ed070d5609e8b6f62 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sat, 8 Jul 2017 18:34:08 +0200 Subject: [PATCH] :hammer: 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. --- src/json.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 26676954..c312b3e8 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -12822,14 +12822,14 @@ scan_number_done: { // using "uninitialized" to avoid "expected" message expect(lexer::token_type::uninitialized); - break; + break; // LCOV_EXCL_LINE } default: { // the last token was unexpected; we expected a value expect(lexer::token_type::literal_or_value); - break; + break; // LCOV_EXCL_LINE } }