From 80dc7cceb8e726d7ad9d288e3051094e8292ed71 Mon Sep 17 00:00:00 2001 From: Ivan Shynkarenka Date: Wed, 20 Jan 2021 04:13:10 +0300 Subject: [PATCH] Fixed format.h(1465): warning C4702: unreachable code (#2106) * Fixed format.h(1465): warning C4702: unreachable code * Fixed format.h(1416): warning C4702: unreachable code --- include/fmt/format.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 2f8ab84f8e3c..654540819ee6 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1412,9 +1412,9 @@ FMT_CONSTEXPR void handle_int_type_spec(char spec, Handler&& handler) { break; #ifdef FMT_DEPRECATED_N_SPECIFIER case 'n': -#endif handler.on_num(); break; +#endif case 'c': handler.on_chr(); break; @@ -1461,9 +1461,9 @@ FMT_CONSTEXPR float_specs parse_float_type_spec( break; #ifdef FMT_DEPRECATED_N_SPECIFIER case 'n': -#endif result.locale = true; break; +#endif default: eh.on_error("invalid type specifier"); break;