mirror of
https://github.com/fmtlib/fmt.git
synced 2025-04-16 05:42:19 +00:00
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:
parent
7fd535c6ae
commit
80dc7cceb8
@ -1412,9 +1412,9 @@ FMT_CONSTEXPR void handle_int_type_spec(char spec, Handler&& handler) {
|
|||||||
break;
|
break;
|
||||||
#ifdef FMT_DEPRECATED_N_SPECIFIER
|
#ifdef FMT_DEPRECATED_N_SPECIFIER
|
||||||
case 'n':
|
case 'n':
|
||||||
#endif
|
|
||||||
handler.on_num();
|
handler.on_num();
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case 'c':
|
case 'c':
|
||||||
handler.on_chr();
|
handler.on_chr();
|
||||||
break;
|
break;
|
||||||
@ -1461,9 +1461,9 @@ FMT_CONSTEXPR float_specs parse_float_type_spec(
|
|||||||
break;
|
break;
|
||||||
#ifdef FMT_DEPRECATED_N_SPECIFIER
|
#ifdef FMT_DEPRECATED_N_SPECIFIER
|
||||||
case 'n':
|
case 'n':
|
||||||
#endif
|
|
||||||
result.locale = true;
|
result.locale = true;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
eh.on_error("invalid type specifier");
|
eh.on_error("invalid type specifier");
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user