mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +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
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…
Add table
Add a link
Reference in a new issue