forked from fmtlib/fmt
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:
@ -2874,6 +2874,8 @@ FMT_CONSTEXPR const Char* parse_align(const Char* begin, const Char* end,
|
|||||||
case '^':
|
case '^':
|
||||||
align = align::center;
|
align = align::center;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (align != align::none) {
|
if (align != align::none) {
|
||||||
if (p != begin) {
|
if (p != begin) {
|
||||||
@ -2963,6 +2965,8 @@ FMT_CONSTEXPR_DECL FMT_INLINE const Char* parse_format_specs(
|
|||||||
handler.on_space();
|
handler.on_space();
|
||||||
++begin;
|
++begin;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (begin == end) return begin;
|
if (begin == end) return begin;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user