From cc34bc844d11562b6c5404d836ed9a4aaedece6f Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 11 Aug 2015 10:10:07 +0800 Subject: [PATCH] Tell compiler we want to ignore result of SetPrototype --- atom/browser/api/event_emitter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.43.0