From 3ae4d80e86339ddffae9653305848d4a0379cc77 Mon Sep 17 00:00:00 2001 From: Ioannis Assiouras Date: Mon, 20 Nov 2023 23:14:05 +0000 Subject: [PATCH] SWDEV-433317 - Added compilation flag to report an error if vla is used Change-Id: I8a03e1fece88ec52261c53684c9f66bbfc401a12 --- catch/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catch/CMakeLists.txt b/catch/CMakeLists.txt index f64390bd00..05aaf7d1bc 100644 --- a/catch/CMakeLists.txt +++ b/catch/CMakeLists.txt @@ -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)