From 20cefa0fb6514f30738a4b6774e0ce356b4af9bd Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Fri, 7 May 2021 09:31:21 -0500 Subject: [PATCH] vm: Fix a warning found by -Wextra The code probably can't actually fall through to the next case since the true branch is an error case, but it looks cleaner this way. --- vm/alien.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vm/alien.cpp b/vm/alien.cpp index 894ba2d4c8..8b6cc81b76 100644 --- a/vm/alien.cpp +++ b/vm/alien.cpp @@ -12,8 +12,7 @@ char* factor_vm::pinned_alien_offset(cell obj) { general_error(ERROR_EXPIRED, obj, false_object); if (to_boolean(ptr->base)) type_error(ALIEN_TYPE, obj); - else - return (char*)ptr->address; + return (char*)ptr->address; } case F_TYPE: return NULL; -- 2.34.1