xo-type: nit: need return value even on impossible paths
This commit is contained in:
parent
5502f3e10c
commit
3a7355b7d8
1 changed files with 7 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
**/
|
||||
|
||||
#include "Metatype.hpp"
|
||||
#include <cassert>
|
||||
|
||||
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*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue