1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 08:35:09 +00:00

LibCore: Fix errors when compiling LibCore using clang instead of gcc

This commit is contained in:
Stefano Cristiano 2019-12-25 17:08:43 +01:00 committed by Andreas Kling
parent 250f6b9a1e
commit aab412bd85
3 changed files with 7 additions and 2 deletions

View file

@ -241,8 +241,9 @@ void CEventLoop::pump(WaitMode mode)
for (int i = 0; i < events.size(); ++i) {
auto& queued_event = events.at(i);
#ifndef __clang__
ASSERT(queued_event.event);
#endif
auto* receiver = queued_event.receiver.ptr();
auto& event = *queued_event.event;
#ifdef CEVENTLOOP_DEBUG