[Lldb-commits] [lldb] r213575 - build: silence GCC warning on Linux
Saleem Abdulrasool
compnerd at compnerd.org
Mon Jul 21 11:18:52 PDT 2014
Author: compnerd
Date: Mon Jul 21 13:18:52 2014
New Revision: 213575
URL: http://llvm.org/viewvc/llvm-project?rev=213575&view=rev
Log:
build: silence GCC warning on Linux
LLDWrapPython.cpp is a generated file. This contains a double assignment to the
same value, which causes GCC to emit a warning about sequence point evaluation
causing a use-before-init. Simply silence the warning.
Modified:
lldb/trunk/source/CMakeLists.txt
Modified: lldb/trunk/source/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/CMakeLists.txt?rev=213575&r1=213574&r2=213575&view=diff
==============================================================================
--- lldb/trunk/source/CMakeLists.txt (original)
+++ lldb/trunk/source/CMakeLists.txt Mon Jul 21 13:18:52 2014
@@ -199,8 +199,14 @@ set( LLVM_LINK_COMPONENTS
if ( NOT LLDB_DISABLE_PYTHON )
- set_source_files_properties(${LLDB_BINARY_DIR}/scripts/LLDBWrapPython.cpp PROPERTIES GENERATED 1)
set(LLDB_WRAP_PYTHON ${LLDB_BINARY_DIR}/scripts/LLDBWrapPython.cpp)
+
+ set_source_files_properties(${LLDB_WRAP_PYTHON} PROPERTIES GENERATED 1)
+ if (LLVM_COMPILER_IS_GCC_COMPATIBLE AND
+ NOT "${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")
+ set_property(SOURCE ${LLDB_WRAP_PYTHON}
+ APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-sequence-point")
+ endif ()
endif()
set(SHARED_LIBRARY 1)
More information about the lldb-commits
mailing list