[Lldb-commits] [PATCH] D12515: Use -Wno-vla-extension globally.
Bruce Mitchener via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 1 16:45:10 PDT 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL246605: Use -Wno-vla-extension globally. (authored by brucem).
Changed prior to commit:
http://reviews.llvm.org/D12515?vs=33660&id=33755#toc
Repository:
rL LLVM
http://reviews.llvm.org/D12515
Files:
lldb/trunk/cmake/modules/LLDBConfig.cmake
lldb/trunk/tools/debugserver/source/CMakeLists.txt
Index: lldb/trunk/cmake/modules/LLDBConfig.cmake
===================================================================
--- lldb/trunk/cmake/modules/LLDBConfig.cmake
+++ lldb/trunk/cmake/modules/LLDBConfig.cmake
@@ -114,6 +114,12 @@
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-register")
endif ()
+check_cxx_compiler_flag("-Wno-vla-extension"
+ CXX_SUPPORTS_NO_VLA_EXTENSION)
+if (CXX_SUPPORTS_NO_VLA_EXTENSION)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-vla-extension")
+endif ()
+
# Disable MSVC warnings
if( MSVC )
add_definitions(
Index: lldb/trunk/tools/debugserver/source/CMakeLists.txt
===================================================================
--- lldb/trunk/tools/debugserver/source/CMakeLists.txt
+++ lldb/trunk/tools/debugserver/source/CMakeLists.txt
@@ -16,12 +16,6 @@
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-gnu-zero-variadic-macro-arguments")
endif ()
-check_cxx_compiler_flag("-Wno-vla-extension"
- CXX_SUPPORTS_NO_VLA_EXTENSION)
-if (CXX_SUPPORTS_NO_VLA_EXTENSION)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-vla-extension")
-endif ()
-
check_cxx_compiler_flag("-Wno-zero-length-array"
CXX_SUPPORTS_NO_ZERO_LENGTH_ARRAY)
if (CXX_SUPPORTS_NO_ZERO_LENGTH_ARRAY)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12515.33755.patch
Type: text/x-patch
Size: 1298 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150901/7bf3067d/attachment.bin>
More information about the lldb-commits
mailing list