mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +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
Notes:
sideshowbarker
2024-07-17 04:57:23 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/63a2039b51 Pull-request: https://github.com/SerenityOS/serenity/pull/21804 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/alimpfard ✅
1 changed files with 1 additions and 1 deletions
|
@ -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