mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
CMake: Disable Clang 18+ -Wvla-cxx-extension
warning
This warning warns about variable-length arrays being a non-standard extension to the C++ language. We still have a few instances of VLAs, so let's disable the warning for now. This does not interfere with `-Wvla`, which we use to completely forbid this (potentially dangerous) feature in the Kernel and LibCrypto.
This commit is contained in:
parent
63a2039b51
commit
cf3c8a216b
Notes:
sideshowbarker
2024-07-16 22:16:50 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/cf3c8a216b 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 0 deletions
|
@ -24,6 +24,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang$")
|
|||
|
||||
add_compile_options(-Wno-implicit-const-int-float-conversion)
|
||||
add_compile_options(-Wno-user-defined-literals)
|
||||
add_compile_options(-Wno-vla-cxx-extension)
|
||||
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
# Only ignore expansion-to-defined for g++, clang's implementation doesn't complain about function-like macros
|
||||
add_compile_options(-Wno-expansion-to-defined)
|
||||
|
|
Loading…
Reference in a new issue