Skip to content

Commit

Permalink
disabled diagnostics of variable-length arrays for clang version 18 a…
Browse files Browse the repository at this point in the history
…nd higher
  • Loading branch information
troy4eg committed Sep 1, 2024
1 parent 7f605cc commit 3cb2120
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/init-compilation-flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ endif()

add_compile_options(-Werror -Wall -Wextra -Wunused-function -Wfloat-conversion -Wno-sign-compare
-Wuninitialized -Wno-redundant-move -Wno-missing-field-initializers)

if(CMAKE_CXX_COMPILER_ID MATCHES Clang AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "18")
add_compile_options(-Wno-vla-cxx-extension)
endif()

if(COMPILE_RUNTIME_LIGHT)
add_compile_options(-Wno-vla-extension)
endif()
Expand Down

0 comments on commit 3cb2120

Please sign in to comment.