Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2018-11-30 04:24:47 +0300
committerSam Roberts <vieuxtech@gmail.com>2018-12-04 06:44:15 +0300
commit0c65314e0e8602f4a7e0ace43ebd63de233eac62 (patch)
treea438119eee16a3d3d3427ebf1845ee5df1e626a1 /src/cares_wrap.cc
parent02cd7069a8631a324298be9f24771fb0faf23639 (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/cares_wrap.cc')
-rw-r--r--src/cares_wrap.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc
index e5d0319fa17..a3bcdf89535 100644
--- a/src/cares_wrap.cc
+++ b/src/cares_wrap.cc
@@ -2172,7 +2172,8 @@ void StrError(const FunctionCallbackInfo<Value>& args) {
void Initialize(Local<Object> target,
Local<Value> unused,
- Local<Context> context) {
+ Local<Context> context,
+ void* priv) {
Environment* env = Environment::GetCurrent(context);
env->SetMethod(target, "getaddrinfo", GetAddrInfo);