From 0c65314e0e8602f4a7e0ace43ebd63de233eac62 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Thu, 29 Nov 2018 17:24:47 -0800 Subject: src: fix type mismatch warnings from missing priv Registration initialization functions are expected to have a 4th argument, a void*, so add them where necessary to fix the warnings. PR-URL: https://github.com/nodejs/node/pull/24737 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig --- src/node_native_module.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/node_native_module.cc') diff --git a/src/node_native_module.cc b/src/node_native_module.cc index 77763229ce..6e5f08e354 100644 --- a/src/node_native_module.cc +++ b/src/node_native_module.cc @@ -317,7 +317,8 @@ MaybeLocal NativeModuleLoader::LookupAndCompile( void NativeModuleLoader::Initialize(Local target, Local unused, - Local context) { + Local context, + void* priv) { Environment* env = Environment::GetCurrent(context); env->SetMethod( -- cgit v1.2.3