Skip to content

Commit 38c2c15

Browse files
committed
Merge branch 'MSB8027'
* MSB8027: CMake: Avoid including parser.c twice Fix -Wunused-variable warning
2 parents 6370fab + 2f3fb6a commit 38c2c15

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ install (FILES ${CMAKE_CURRENT_BINARY_DIR}/swigwarn.swg DESTINATION ${SWIG_LIB})
127127
# ---------
128128
file (GLOB DOH_SOURCES ${SWIG_SOURCE_DIR}/DOH/*.c)
129129
file (GLOB CPARSE_SOURCES ${SWIG_SOURCE_DIR}/CParse/*.c)
130+
list (REMOVE_ITEM CPARSE_SOURCES ${SWIG_SOURCE_DIR}/CParse/parser.c)
130131
list (APPEND CPARSE_SOURCES)
131132
file (GLOB PREPROCESSOR_SOURCES ${SWIG_SOURCE_DIR}/Preprocessor/*.c)
132133
file (GLOB CORE_SOURCES ${SWIG_SOURCE_DIR}/Swig/*.c)

Source/Modules/interface.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ void Swig_interface_propagate_methods(Node *n) {
183183
if (Strcmp(symname, "$ignore") != 0) {
184184
Symtab *oldscope = Swig_symbol_setscope(Getattr(n, "symtab"));
185185
Node *on = Swig_symbol_add(symname, cn);
186+
(void)on;
186187
assert(on == cn);
187188

188189
// Features from the copied base class method are already present, now add in features specific to the added method in the derived class

0 commit comments

Comments
 (0)