forked from OSchip/llvm-project
Fix warnings in LLDBWrapPython.cpp with gcc 4.9.
Summary: I see a lot of following warnings in LLDBWrapPython.cpp while building with gcc 4.9 on Linux. "warning: cast from type ‘const char*’ to type ‘char*’ casts away qualifiers [-Wcast-qual]" Is it ok to add -Wno-cast-qual for this file in cmake for gcc. This option seems to be already present for autotool case. Reviewers: zturner, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D13719 llvm-svn: 250380
This commit is contained in:
parent
3ef4dd7bc8
commit
3eedf96a5a
|
@ -191,6 +191,6 @@ if ( NOT LLDB_DISABLE_PYTHON )
|
|||
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")
|
||||
APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-sequence-point -Wno-cast-qual")
|
||||
endif ()
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue