From 2c6f74d6d67208389a431aa5599b15899c16741a Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Thu, 24 Sep 2015 17:17:04 +0100 Subject: [PATCH] Enable compiler flag -Wvla --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c637ced90..5d6082b857 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,7 +121,7 @@ if(MSVC) add_definitions(/W3 -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE) else() add_definitions(-Wall -Wextra -pedantic -Wno-unused-parameter - -Wstrict-prototypes -std=gnu99) + -Wstrict-prototypes -Wvla -std=gnu99) endif() if(MINGW)