From 684522a8b7e1a0af7a5c8b77ee1688c8f0e93198 Mon Sep 17 00:00:00 2001 From: Bernd Amend Date: Sat, 22 May 2021 14:01:39 +0200 Subject: [PATCH] fix -Wcovered-switch-default warnings --- include/chaiscript/dispatchkit/boxed_number.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/chaiscript/dispatchkit/boxed_number.hpp b/include/chaiscript/dispatchkit/boxed_number.hpp index deba0bc7..357f4cb0 100644 --- a/include/chaiscript/dispatchkit/boxed_number.hpp +++ b/include/chaiscript/dispatchkit/boxed_number.hpp @@ -288,10 +288,8 @@ namespace chaiscript return callable(*static_cast(bv.get_const_ptr())); case Common_Types::t_long_double: return callable(*static_cast(bv.get_const_ptr())); - default: - throw chaiscript::detail::exception::bad_any_cast(); - } + throw chaiscript::detail::exception::bad_any_cast(); } inline static Boxed_Value oper(Operators::Opers t_oper, const Boxed_Value &t_lhs)