diff --git a/cmake/compiler/clang/settings.cmake b/cmake/compiler/clang/settings.cmake index 6c5419a94..d5ba4204a 100644 --- a/cmake/compiler/clang/settings.cmake +++ b/cmake/compiler/clang/settings.cmake @@ -3,7 +3,8 @@ target_compile_options(zm-warning-interface -Wall -Wextra -Wimplicit-fallthrough - -Wno-unused-parameter) + -Wno-unused-parameter + -Wvla) if(ENABLE_WERROR) target_compile_options(zm-warning-interface diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake index 097270d51..ce84dcc1a 100644 --- a/cmake/compiler/gcc/settings.cmake +++ b/cmake/compiler/gcc/settings.cmake @@ -7,7 +7,8 @@ target_compile_options(zm-warning-interface -Wno-cast-function-type $<$,11>:-Wno-clobbered> -Wno-unused-parameter - -Woverloaded-virtual) + -Woverloaded-virtual + -Wvla) if(ENABLE_WERROR) target_compile_options(zm-warning-interface