From 0326e4e2a69d5cbb3d92b5b982b077a54084731b Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 31 Jul 2020 19:24:03 +0200 Subject: [PATCH] :rotating_light: fix fallthrough warning --- include/nlohmann/detail/input/lexer.hpp | 4 ++-- single_include/nlohmann/json.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/nlohmann/detail/input/lexer.hpp b/include/nlohmann/detail/input/lexer.hpp index 60eb3526..f53ebfeb 100644 --- a/include/nlohmann/detail/input/lexer.hpp +++ b/include/nlohmann/detail/input/lexer.hpp @@ -880,13 +880,13 @@ class lexer : public lexer_base default: { unget(); - break; + continue; } } } default: - break; + continue; } } } diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 9c66a845..4462da8f 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -6759,13 +6759,13 @@ class lexer : public lexer_base default: { unget(); - break; + continue; } } } default: - break; + continue; } } }