[Lldb-commits] [lldb] r250380 - Fix warnings in LLDBWrapPython.cpp with gcc 4.9.
Hafiz Abid Qadeer via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 15 01:27:01 PDT 2015
Author: abidh
Date: Thu Oct 15 03:27:01 2015
New Revision: 250380
URL: http://llvm.org/viewvc/llvm-project?rev=250380&view=rev
Log:
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
Modified:
lldb/trunk/cmake/LLDBDependencies.cmake
Modified: lldb/trunk/cmake/LLDBDependencies.cmake
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/cmake/LLDBDependencies.cmake?rev=250380&r1=250379&r2=250380&view=diff
==============================================================================
--- lldb/trunk/cmake/LLDBDependencies.cmake (original)
+++ lldb/trunk/cmake/LLDBDependencies.cmake Thu Oct 15 03:27:01 2015
@@ -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()
More information about the lldb-commits
mailing list