From 697790c1176bb4bb8062458c765fecc5e8a07646 Mon Sep 17 00:00:00 2001 From: Sakthipriyan Vairamani Date: Tue, 19 Apr 2016 19:14:50 +0530 Subject: [PATCH] src: fix -Wunused-result warning in e38bade This patch fixes the warning introduced by the changes in e38bade. Ref: https://github.com/nodejs/node/pull/6092 PR-URL: https://github.com/nodejs/node/pull/6276 Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Brian White --- src/node.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node.cc b/src/node.cc index dd427c792e..c36161e7ff 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3229,7 +3229,8 @@ void SetupProcessObject(Environment* env, // pre-set _events object for faster emit checks Local events_obj = Object::New(env->isolate()); - events_obj->SetPrototype(env->context(), Null(env->isolate())); + maybe = events_obj->SetPrototype(env->context(), Null(env->isolate())); + CHECK(maybe.FromJust()); process->Set(env->events_string(), events_obj); }