mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 21:01:52 +00:00
Enable more C++ warnings (#9602)
* Enable more C++ warnings * Only enable these ones in release builds * Update MessagePortChannel.cpp * Update BunProcess.cpp --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
@@ -4,7 +4,6 @@ namespace Zig {
|
||||
JSC::SyntheticSourceProvider::SyntheticSourceGenerator
|
||||
generateObjectModuleSourceCode(JSC::JSGlobalObject *globalObject,
|
||||
JSC::JSObject *object) {
|
||||
JSC::VM &vm = globalObject->vm();
|
||||
gcProtectNullTolerant(object);
|
||||
return [object](JSC::JSGlobalObject *lexicalGlobalObject,
|
||||
JSC::Identifier moduleKey,
|
||||
@@ -38,7 +37,6 @@ generateObjectModuleSourceCode(JSC::JSGlobalObject *globalObject,
|
||||
JSC::SyntheticSourceProvider::SyntheticSourceGenerator
|
||||
generateObjectModuleSourceCodeForJSON(JSC::JSGlobalObject *globalObject,
|
||||
JSC::JSObject *object) {
|
||||
JSC::VM &vm = globalObject->vm();
|
||||
gcProtectNullTolerant(object);
|
||||
return [object](JSC::JSGlobalObject *lexicalGlobalObject,
|
||||
JSC::Identifier moduleKey,
|
||||
@@ -92,8 +90,6 @@ generateJSValueModuleSourceCode(JSC::JSGlobalObject *globalObject,
|
||||
Vector<JSC::Identifier, 4> &exportNames,
|
||||
JSC::MarkedArgumentBuffer &exportValues) -> void {
|
||||
JSC::VM &vm = lexicalGlobalObject->vm();
|
||||
GlobalObject *globalObject =
|
||||
reinterpret_cast<GlobalObject *>(lexicalGlobalObject);
|
||||
exportNames.append(vm.propertyNames->defaultKeyword);
|
||||
exportValues.append(value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user