SWDEV-433317 - Added compilation flag to report an error if vla is used

Change-Id: I8a03e1fece88ec52261c53684c9f66bbfc401a12


[ROCm/hip-tests commit: 3ae4d80e86]
This commit is contained in:
Ioannis Assiouras authored and German Andryeyev committed 2023-12-05 17:53:18 -05:00
1 parent b821fdbfba
commit d614ceced0
1 file changed
+1 -1
+1 -1
View File
@@ -159,7 +159,7 @@ if (WIN32)
endif()
if(HIP_PLATFORM STREQUAL "amd")
add_compile_options(-Wall -Wextra -Werror -Wno-deprecated -Wno-option-ignored)
add_compile_options(-Wall -Wextra -Wvla -Werror -Wno-deprecated -Wno-option-ignored)
endif()
cmake_policy(PUSH)