From 9ade1adf6654be2120915cc85606cef2724a4db1 Mon Sep 17 00:00:00 2001
From: Nikos Strimpas <nikos-strimpas@outlook.com>
Date: Sun, 4 Sep 2022 20:37:00 +0000
Subject: [PATCH] Add `-Wvla` compiler option

---
 CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 78e2b55f..9088f50c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,6 +20,8 @@ set(ECSS_CONFIGURATION "${PROJECT_SOURCE_DIR}/inc/Platform/x86" CACHE PATH
         )
 include_directories(${ECSS_CONFIGURATION})
 
+add_compile_options(-Wvla)
+
 # Specify the .cpp files common across all targets
 add_library(common OBJECT
         lib/logger/src/Logger.cpp
-- 
GitLab