From f34a01f9b53de8a3f540901bccd99ef3f8d3a339 Mon Sep 17 00:00:00 2001 From: johnche Date: Thu, 24 Oct 2024 16:49:32 +0800 Subject: [PATCH] 4191 warning --- unreal/Puerts/Source/JsEnv/Public/V8Backend.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unreal/Puerts/Source/JsEnv/Public/V8Backend.hpp b/unreal/Puerts/Source/JsEnv/Public/V8Backend.hpp index 3eb6d1f942..1bf6a00067 100644 --- a/unreal/Puerts/Source/JsEnv/Public/V8Backend.hpp +++ b/unreal/Puerts/Source/JsEnv/Public/V8Backend.hpp @@ -176,7 +176,10 @@ struct API ClassDef.SuperTypeId = Cdb.superTypeId_; } + MSVC_PRAGMA(warning(push)) + MSVC_PRAGMA(warning(disable : 4191)) ClassDef.Initialize = reinterpret_cast(Cdb.constructor_); + MSVC_PRAGMA(warning(pop)) ClassDef.Finalize = Finalize; s_functions_ = std::move(Cdb.functions_);