mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-23 02:55:15 +00:00
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:
parent
6f972c190b
commit
63a2039b51
|
@ -130,7 +130,7 @@ void CFEventLoopManager::register_notifier(Core::Notifier& notifier)
|
|||
break;
|
||||
}
|
||||
|
||||
CFSocketContext context { .info = ¬ifier };
|
||||
CFSocketContext context { .version = 0, .info = ¬ifier, .retain = nullptr, .release = nullptr, .copyDescription = nullptr };
|
||||
auto* socket = CFSocketCreateWithNative(kCFAllocatorDefault, notifier.fd(), notification_type, &socket_notifier, &context);
|
||||
|
||||
CFOptionFlags sockopt = CFSocketGetSocketFlags(socket);
|
||||
|
|
Loading…
Reference in a new issue