From eb6bc156b9b81ba749e88dfd7f42c452585b6747 Mon Sep 17 00:00:00 2001 From: scemino Date: Mon, 25 Mar 2024 20:34:28 +0100 Subject: [PATCH] TWP: Fix unreachable code detected in squirrel. PVS-Studio V779 --- engines/twp/squirrel/sqvm.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/engines/twp/squirrel/sqvm.cpp b/engines/twp/squirrel/sqvm.cpp index bf60dd3ac22..86b3f379afc 100755 --- a/engines/twp/squirrel/sqvm.cpp +++ b/engines/twp/squirrel/sqvm.cpp @@ -265,8 +265,6 @@ bool SQVM::ObjCmp(const SQObjectPtr &o1,const SQObjectPtr &o2,SQInteger &result) else { Raise_CompareError(o1,o2); return false; } } - assert(0); - _RET_SUCCEED(0); //cannot happen } bool SQVM::CMP_OP(CmpOP op, const SQObjectPtr &o1,const SQObjectPtr &o2,SQObjectPtr &res)