[Lldb-commits] [lldb] r246605 - Use -Wno-vla-extension globally.
Bruce Mitchener via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 1 16:43:52 PDT 2015
Author: brucem
Date: Tue Sep 1 18:43:51 2015
New Revision: 246605
URL: http://llvm.org/viewvc/llvm-project?rev=246605&view=rev
Log:
Use -Wno-vla-extension globally.
Summary:
This was previously only established within debugserver, but
there is a use of the VLA extension in source/Host/macosx/Symbols.cpp,
so ignore this warning globally.
Reviewers: clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D12515
Modified:
lldb/trunk/cmake/modules/LLDBConfig.cmake
lldb/trunk/tools/debugserver/source/CMakeLists.txt
Modified: lldb/trunk/cmake/modules/LLDBConfig.cmake
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/cmake/modules/LLDBConfig.cmake?rev=246605&r1=246604&r2=246605&view=diff
==============================================================================
--- lldb/trunk/cmake/modules/LLDBConfig.cmake (original)
+++ lldb/trunk/cmake/modules/LLDBConfig.cmake Tue Sep 1 18:43:51 2015
@@ -114,6 +114,12 @@ if (CXX_SUPPORTS_NO_DEPRECATED_REGISTER)
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(
Modified: lldb/trunk/tools/debugserver/source/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/CMakeLists.txt?rev=246605&r1=246604&r2=246605&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/CMakeLists.txt (original)
+++ lldb/trunk/tools/debugserver/source/CMakeLists.txt Tue Sep 1 18:43:51 2015
@@ -16,12 +16,6 @@ if (CXX_SUPPORTS_NO_GNU_ZERO_VARIADIC_MA
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)
More information about the lldb-commits
mailing list