From 39c80aed06690498b2a684598604a870d699feb6 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 --- src/type/Metatype.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/type/Metatype.cpp b/src/type/Metatype.cpp index 1ac26f6..1eb0138 100644 --- a/src/type/Metatype.cpp +++ b/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*/