Skip to content

Commit

Permalink
src: fix warning on mismatched fn signature
Browse files Browse the repository at this point in the history
Add the missing `void* priv` to node_report's Initialize().

PR-URL: #26950
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Signed-off-by: Beth Griggs <Bethany.Griggs@uk.ibm.com>
  • Loading branch information
sam-github authored and BethGriggs committed Apr 9, 2019
1 parent 06dce39 commit d0ee1a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/node_report_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ static void SetReportOnUncaughtException(

static void Initialize(Local<Object> exports,
Local<Value> unused,
Local<Context> context) {
Local<Context> context,
void* priv) {
Environment* env = Environment::GetCurrent(context);

env->SetMethod(exports, "writeReport", WriteReport);
Expand Down

0 comments on commit d0ee1a3

Please sign in to comment.