mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Lagom: Disable the unused-private-field warning on Lagom's clang builds
With the compilation of LibWeb, there's now quite a few cases where this warning gets triggered. Rather than trying to fix them all right away, we simply disable the warning for now. This workaround was proposed by Andrew Kaster and BertalanD who promised to open an issue about it!
This commit is contained in:
parent
915ac9edd6
commit
b388aa7876
Notes:
sideshowbarker
2024-07-17 10:34:49 +09:00
Author: https://github.com/Dexesttp Commit: https://github.com/SerenityOS/serenity/commit/b388aa7876 Pull-request: https://github.com/SerenityOS/serenity/pull/13473 Issue: https://github.com/SerenityOS/serenity/issues/10968 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/kleinesfilmroellchen Reviewed-by: https://github.com/krkk Reviewed-by: https://github.com/linusg ✅
1 changed files with 4 additions and 0 deletions
|
@ -102,6 +102,10 @@ endif()
|
|||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang$")
|
||||
# Clang's default constexpr-steps limit is 1048576(2^20), GCC doesn't have one
|
||||
add_compile_options(-Wno-overloaded-virtual -Wno-user-defined-literals -fconstexpr-steps=16777216)
|
||||
# FIXME: Re-enable this check when the warning stops triggering, or document why we can't stop it from triggering.
|
||||
# For now, there is a lot of unused private fields in LibWeb that trigger this that could be removed.
|
||||
# See issue #14137 for details
|
||||
add_compile_options(-Wno-unused-private-field)
|
||||
|
||||
if (ENABLE_FUZZERS_LIBFUZZER)
|
||||
add_compile_options(-fsanitize=fuzzer)
|
||||
|
|
Loading…
Reference in a new issue