diff --git a/include/fmt/core.h b/include/fmt/core.h index b5156e20..a72dbb40 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1067,6 +1067,8 @@ FMT_CONSTEXPR auto visit_format_arg(Visitor&& vis, return vis(arg.value_.pointer); case internal::custom_type: return vis(typename basic_format_arg::handle(arg.value_.custom)); + default: + break; } return vis(monostate()); } diff --git a/include/fmt/format.h b/include/fmt/format.h index bec24906..7f29a578 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2347,6 +2347,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 (i > 0) { @@ -2427,6 +2429,8 @@ FMT_CONSTEXPR const Char* parse_format_specs(const Char* begin, const Char* end, handler.on_space(); ++begin; break; + default: + break; } if (begin == end) return begin;