diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2018-11-30 04:24:47 +0300 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2018-12-04 06:44:15 +0300 |
commit | 0c65314e0e8602f4a7e0ace43ebd63de233eac62 (patch) | |
tree | a438119eee16a3d3d3427ebf1845ee5df1e626a1 /src/fs_event_wrap.cc | |
parent | 02cd7069a8631a324298be9f24771fb0faf23639 (diff) |
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 <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/fs_event_wrap.cc')
-rw-r--r-- | src/fs_event_wrap.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fs_event_wrap.cc b/src/fs_event_wrap.cc index 057445776a5..249a4bb973c 100644 --- a/src/fs_event_wrap.cc +++ b/src/fs_event_wrap.cc @@ -52,7 +52,8 @@ class FSEventWrap: public HandleWrap { public: static void Initialize(Local<Object> target, Local<Value> unused, - Local<Context> context); + Local<Context> context, + void* priv); static void New(const FunctionCallbackInfo<Value>& args); static void Start(const FunctionCallbackInfo<Value>& args); static void GetInitialized(const FunctionCallbackInfo<Value>& args); @@ -95,7 +96,8 @@ void FSEventWrap::GetInitialized(const FunctionCallbackInfo<Value>& args) { void FSEventWrap::Initialize(Local<Object> target, Local<Value> unused, - Local<Context> context) { + Local<Context> context, + void* priv) { Environment* env = Environment::GetCurrent(context); auto fsevent_string = FIXED_ONE_BYTE_STRING(env->isolate(), "FSEvent"); |