mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-30 06:32:48 +00:00
add default cases (#2186)
Adding default case for switch statements where the compilation flag -Wswitch-default is present on the command line when spdlog is included in external projects. Signed-off-by: Ryan Sherlock <ryan.m.sherlock@gmail.com>
This commit is contained in:
parent
417e1cee9e
commit
0f85a4683a
@ -2874,6 +2874,8 @@ FMT_CONSTEXPR const Char* parse_align(const Char* begin, const Char* end,
|
||||
case '^':
|
||||
align = align::center;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (align != align::none) {
|
||||
if (p != begin) {
|
||||
@ -2963,6 +2965,8 @@ FMT_CONSTEXPR_DECL FMT_INLINE const Char* parse_format_specs(
|
||||
handler.on_space();
|
||||
++begin;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (begin == end) return begin;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user