From f8dee2a9ab7aa12684f9de2af6a5b79791eb0c0d Mon Sep 17 00:00:00 2001 From: Ryan Sherlock Date: Sat, 20 Mar 2021 09:23:56 -0700 Subject: [PATCH] add default case for core Adding default case for switch statements where the compilation flag -Wswitch-default is present on the command line. Signed-off-by: Ryan Sherlock --- include/fmt/core.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/fmt/core.h b/include/fmt/core.h index 184d039f..2205f9bf 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1371,6 +1371,8 @@ FMT_CONSTEXPR_DECL FMT_INLINE auto visit_format_arg( return vis(arg.value_.pointer); case detail::type::custom_type: return vis(typename basic_format_arg::handle(arg.value_.custom)); + default: + break; } return vis(monostate()); }