Skip to content

Commit 6842f69

Browse files
bulbazordmylai-mtk
authored andcommitted
[lldb] Ignore swig warnings about shadowed overloads (llvm#83317)
This specifically addresses the warnings: $LLVM/lldb/include/lldb/API/SBCommandReturnObject.h:119: Warning 509: Overloaded method lldb::SBCommandReturnObject::PutCString(char const *) effectively ignored, $LLVM/lldb/include/lldb/API/SBCommandReturnObject.h:119: Warning 509: as it is shadowed by lldb::SBCommandReturnObject::PutCString(char const *,int). There is exactly one declaration of SBCommandReturnObject::PutCString. The second parameter (of type `int`) has default value `-1`. Without investigating why SWIG believes there are 2 method declarations, I believe it is safe to ignore this warning. It does not appear to actually impact functionality in any way. rdar://117744660
1 parent 0629736 commit 6842f69

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lldb/bindings/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ endif()
2323

2424
set(SWIG_COMMON_FLAGS
2525
-c++
26-
-w361,362 # Ignore warnings about ignored operator overloads
26+
# Ignored warnings:
27+
# 361: operator! ignored.
28+
# 362: operator= ignored.
29+
# 509: Overloaded method declaration effectively ignored, shadowed by previous declaration.
30+
-w361,362,509
2731
-features autodoc
2832
-I${LLDB_SOURCE_DIR}/include
2933
-I${CMAKE_CURRENT_SOURCE_DIR}

0 commit comments

Comments
 (0)