From 66b95362dfabb72a92afe25c7a8d650f1e04e5e2 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Wed, 27 Mar 2019 15:35:16 -0700 Subject: [PATCH] src: fix warning on mismatched fn signature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the missing `void* priv` to node_report's Initialize(). PR-URL: https://github.com/nodejs/node/pull/26950 Reviewed-By: Anna Henningsen Reviewed-By: Richard Lau Reviewed-By: Tobias Nießen Reviewed-By: Yongsheng Zhang --- src/node_report_module.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node_report_module.cc b/src/node_report_module.cc index 3317077e8b9..f303685adbb 100644 --- a/src/node_report_module.cc +++ b/src/node_report_module.cc @@ -155,7 +155,8 @@ static void SetReportOnUncaughtException( static void Initialize(Local exports, Local unused, - Local context) { + Local context, + void* priv) { Environment* env = Environment::GetCurrent(context); env->SetMethod(exports, "writeReport", WriteReport);