From 3a7355b7d85cd39a49b69c02430d908a781eadcc Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Tue, 17 Mar 2026 12:28:12 -0400 Subject: [PATCH] xo-type: nit: need return value even on impossible paths --- xo-type/src/type/Metatype.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xo-type/src/type/Metatype.cpp b/xo-type/src/type/Metatype.cpp index 1ac26f62..1eb0138e 100644 --- a/xo-type/src/type/Metatype.cpp +++ b/xo-type/src/type/Metatype.cpp @@ -4,6 +4,7 @@ **/ #include "Metatype.hpp" +#include namespace xo { namespace scm { @@ -36,6 +37,9 @@ namespace xo { case code::t_callable: return "callable"; case code::t_any: return "any"; } + + assert(false); + return "?metatype"; } bool @@ -86,6 +90,9 @@ namespace xo { case code::t_any: return true; } + + assert(false); + return false; } } /*namespace scm*/