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
This commit is contained in:
Ivan Shynkarenka 2021-01-20 04:13:10 +03:00 committed by GitHub
parent 7fd535c6ae
commit 80dc7cceb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;