Skip to content

Commit 7dc4f66

Browse files
committed
fix for linux
1 parent 568b4b8 commit 7dc4f66

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Source/V8/Private/JavascriptContext_Private.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1160,14 +1160,14 @@ class FJavascriptContextImplementation : public FJavascriptContext
11601160
auto Function1 = FuncMap->Get(context, I.Keyword("prector")).ToLocalChecked();
11611161

11621162
auto ProxyFuncMap = ProxyFunctions->ToObject(context).ToLocalChecked();
1163-
ProxyFuncMap->Set(context, I.Keyword("ctor"), Function0);
1164-
ProxyFuncMap->Set(context, I.Keyword("prector"), Function1);
1163+
(void)ProxyFuncMap->Set(context, I.Keyword("ctor"), Function0);
1164+
(void)ProxyFuncMap->Set(context, I.Keyword("prector"), Function1);
11651165
}
11661166
}
11671167
Context->Environment->PublicExportUClass(Class);
11681168

11691169
auto aftr_v8_template = Context->ExportObject(Class);
1170-
aftr_v8_template->ToObject(context).ToLocalChecked()->Set(context, I.Keyword("proxy"), ProxyFunctions);
1170+
(void)(aftr_v8_template->ToObject(context).ToLocalChecked()->Set(context, I.Keyword("proxy"), ProxyFunctions));
11711171

11721172
Class->GetDefaultObject(true);
11731173

@@ -1312,7 +1312,7 @@ class FJavascriptContextImplementation : public FJavascriptContext
13121312
Context->Environment->PublicExportStruct(Struct);
13131313

13141314
auto aftr_v8_template = Context->ExportObject(Struct);
1315-
aftr_v8_template->ToObject(context).ToLocalChecked()->Set(context, I.Keyword("proxy"), ProxyFunctions);
1315+
(void)(aftr_v8_template->ToObject(context).ToLocalChecked()->Set(context, I.Keyword("proxy"), ProxyFunctions));
13161316
auto end = FPlatformTime::Seconds();
13171317
UE_LOG(Javascript, Warning, TEXT("Rebind UStruct(%s) Elapsed: %.6f"), *Struct->GetName(), end - start);
13181318
#endif

Source/V8/Private/JavascriptIsolate_Private.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ class FJavascriptIsolateImplementation : public FJavascriptIsolate
12131213
if (!function.IsEmpty())
12141214
{
12151215
auto isolate = info.GetIsolate();
1216-
function->Call(isolate->GetCurrentContext(), info.This(), 0, nullptr);
1216+
(void)function->Call(isolate->GetCurrentContext(), info.This(), 0, nullptr);
12171217
}
12181218
}
12191219
};
@@ -1230,7 +1230,7 @@ class FJavascriptIsolateImplementation : public FJavascriptIsolate
12301230
auto function = info[1].As<Function>();
12311231
if (!function.IsEmpty())
12321232
{
1233-
function->Call(isolate->GetCurrentContext(), info.This(), 0, nullptr);
1233+
(void)function->Call(isolate->GetCurrentContext(), info.This(), 0, nullptr);
12341234
}
12351235
}
12361236
};

0 commit comments

Comments
 (0)