mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-29 20:59:00 +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: 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…
Add table
Add a link
Reference in a new issue