From: Cheng Zhao Date: Tue, 11 Aug 2015 02:10:07 +0000 (+0800) Subject: Tell compiler we want to ignore result of SetPrototype X-Git-Tag: v0.31.0~2^2~40 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=cc34bc844d11562b6c5404d836ed9a4aaedece6f;p=electron.git Tell compiler we want to ignore result of SetPrototype --- diff --git a/atom/browser/api/event_emitter.cc b/atom/browser/api/event_emitter.cc index aa0b6c87..be7018da 100644 --- a/atom/browser/api/event_emitter.cc +++ b/atom/browser/api/event_emitter.cc @@ -56,7 +56,7 @@ v8::Local EventEmitter::CreateJSEvent( v8::Local EventEmitter::CreateCustomEvent( v8::Isolate* isolate, v8::Local custom_event) { v8::Local event = CreateEventObject(isolate); - event->SetPrototype(custom_event->CreationContext(), custom_event); + (void)event->SetPrototype(custom_event->CreationContext(), custom_event); mate::Dictionary(isolate, event).Set("sender", GetWrapper(isolate)); return event; }