Ladybird/AppKit: Fix -Wmissing-field-initializers with Clang 18+

Clang now warns about missing field initializers even when using
designated initializers.
This commit is contained in:
Daniel Bertalan 2023-11-05 18:02:00 +01:00 committed by Andrew Kaster
parent 6f972c190b
commit 63a2039b51
Notes: sideshowbarker 2024-07-17 04:57:23 +09:00

View file

@ -130,7 +130,7 @@ void CFEventLoopManager::register_notifier(Core::Notifier& notifier)
break;
}
CFSocketContext context { .info = &notifier };
CFSocketContext context { .version = 0, .info = &notifier, .retain = nullptr, .release = nullptr, .copyDescription = nullptr };
auto* socket = CFSocketCreateWithNative(kCFAllocatorDefault, notifier.fd(), notification_type, &socket_notifier, &context);
CFOptionFlags sockopt = CFSocketGetSocketFlags(socket);