mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05:00
CMake: Enable -Werror unconditionally
This commit is contained in:
parent
eb7824339b
commit
5e43fec6dd
Notes:
github-actions[bot]
2025-01-06 19:42:48 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/5e43fec6dd0 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2983
1 changed files with 1 additions and 6 deletions
|
@ -77,16 +77,11 @@ add_cxx_compile_options(-Wno-invalid-offsetof)
|
|||
add_cxx_compile_options(-Wno-unknown-warning-option)
|
||||
add_cxx_compile_options(-Wno-unused-command-line-argument)
|
||||
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "18")
|
||||
add_cxx_compile_options(-Wpadded-bitfield)
|
||||
endif()
|
||||
|
||||
if (NOT CMAKE_HOST_SYSTEM_NAME MATCHES SerenityOS)
|
||||
# FIXME: Something makes this go crazy and flag unused variables that aren't flagged as such when building with the toolchain.
|
||||
# Disable -Werror for now.
|
||||
add_cxx_compile_options(-Werror)
|
||||
endif()
|
||||
add_cxx_compile_options(-Werror)
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT CMAKE_CXX_SIMULATE_ID MATCHES "MSVC")
|
||||
# Clang's default constexpr-steps limit is 1048576(2^20), GCC doesn't have one
|
||||
|
|
Loading…
Reference in a new issue