Skip to content

Commit

Permalink
Fixed format.h(1465): warning C4702: unreachable code (#2106)
Browse files Browse the repository at this point in the history
* Fixed format.h(1465): warning C4702: unreachable code

* Fixed format.h(1416): warning C4702: unreachable code
  • Loading branch information
chronoxor authored Jan 20, 2021
1 parent 7fd535c commit 80dc7cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 80dc7cc

Please sign in to comment.