1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:07:45 +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:
Daniel Bertalan 2023-11-05 18:02:00 +01:00 committed by Andrew Kaster
parent 6f972c190b
commit 63a2039b51

View file

@ -130,7 +130,7 @@ void CFEventLoopManager::register_notifier(Core::Notifier& notifier)
break; 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); auto* socket = CFSocketCreateWithNative(kCFAllocatorDefault, notifier.fd(), notification_type, &socket_notifier, &context);
CFOptionFlags sockopt = CFSocketGetSocketFlags(socket); CFOptionFlags sockopt = CFSocketGetSocketFlags(socket);