Document what -Wvla does and why we want to treat it as an error

This commit is contained in:
Simon Richter 2020-10-09 20:20:50 +02:00 committed by Ian McInerney
parent 5afae757ff
commit 70e62e384d
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
endif()
# Error on variable length arrays (gcc extension)
CHECK_CXX_COMPILER_FLAG( "-Wvla" COMPILER_SUPPORTS_WVLA )
if( COMPILER_SUPPORTS_WVLA )