[DiscordArchive] why would this ask me to initialize that field which is an optional?
[DiscordArchive] why would this ask me to initialize that field which is an optional?
![[Image: image.png?ex=690c501f&is=690afe9f&hm=322...a8d1090c4&]](https://cdn.discordapp.com/attachments/376074396915335170/1391865622392082483/image.png?ex=690c501f&is=690afe9f&hm=3227c9f9e967aadda14ca7a808d356883dbc0102eb475021fe085e0a8d1090c4&)
Archived author: Telegrill • Posted: 2025-07-07T19:37:04.063000+00:00
Original source
why would this ask me to initialize that field which is an optional?
![[Image: image.png?ex=690c501f&is=690afe9f&hm=322...a8d1090c4&]](https://cdn.discordapp.com/attachments/376074396915335170/1391865622392082483/image.png?ex=690c501f&is=690afe9f&hm=3227c9f9e967aadda14ca7a808d356883dbc0102eb475021fe085e0a8d1090c4&)
Archived author: Telegrill • Posted: 2025-07-07T19:39:17.462000+00:00
Original source
isn't std::nullopt the default value of any optional regardless of explicitly initializing it?
Archived author: Tea • Posted: 2025-07-07T19:48:11.289000+00:00
Original source
yes
Archived author: Tea • Posted: 2025-07-07T19:48:57.537000+00:00
Original source
that warning comes from C, we disable it for compilation
Archived author: Tea • Posted: 2025-07-07T19:49:09.793000+00:00
Original source
feel free to just disable it in your configuration
Archived author: Tea • Posted: 2025-07-07T19:49:16.862000+00:00
Original source
<https://github.com/TrinityCore/TrinityCore/blob/master/cmake/compiler/clang/settings.cmake#L55>
Archived author: Telegrill • Posted: 2025-07-07T19:51:12.368000+00:00
Original source
ohh