Fix gcc build errors & warnings

This commit is contained in:
Alexander 'z33ky' Hirsch
2021-01-27 10:27:03 +01:00
parent 264ee2b04f
commit 49836ab50a
14 changed files with 68 additions and 50 deletions

View File

@@ -241,7 +241,7 @@ public:
HSQOBJECT regexpClass_;
};
SQUserPointer TYPETAG_VECTOR = "VectorTypeTag";
static char TYPETAG_VECTOR[] = "VectorTypeTag";
namespace SQVector
{
@@ -1089,7 +1089,7 @@ void PushVariant(HSQUIRRELVM vm, const ScriptVariant_t& value)
sq_createinstance(vm, -1);
SQUserPointer p;
sq_getinstanceup(vm, -1, &p, 0);
new(p) Vector(value);
new(p) Vector(static_cast<const Vector&>(value));
sq_remove(vm, -2);
break;
}