From: Willem Jan Withagen Date: Sun, 4 Jun 2017 19:25:08 +0000 (+0200) Subject: build: revert -Wvla from #15342 X-Git-Tag: ses5-milestone6~8^2~14^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F15469%2Fhead;p=ceph.git build: revert -Wvla from #15342 - VLAs are in GCC and Clang, and are there to stay forever, if only to be compatible with all the software that is already out there. - Theoretical debates about VLA being hard to implement are long superceded by th actual implentations - Before setting this flag is would be required to first start work on fixing all the fallout/warnings that will arise from setting -Wvla - Allocating large variable/stuctures on the stack could be asking for trouble, but changes that ceph tools are going to be running on small embedded devices are rather slim. Signed-off-by: Willem Jan Withagen --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d1f83dea911a..3483a08a39d8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -34,7 +34,6 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wpointer-arith -Werror=format-security -fno set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth-1024 -Wno-invalid-offsetof") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor") -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wvla") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-pragmas") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unknown-pragmas") if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)