diff options
author | Julien Schueller <schueller@phimeca.com> | 2022-10-21 09:02:31 +0200 |
---|---|---|
committer | Julien Schueller <schueller@phimeca.com> | 2022-10-24 09:34:10 +0200 |
commit | 0d523d337d3dc64ea3c64e0c8b5025ae4cc16fab (patch) | |
tree | 8bc3edead44d6a86988fdfefd0e6920b3f288f00 | |
parent | cfd2557cdaf6205219036585d9cacfbbe0ccead0 (diff) | |
download | swig-0d523d337d3dc64ea3c64e0c8b5025ae4cc16fab.tar.gz |
Fix -Wunused-variable warning
-rw-r--r-- | Source/Modules/interface.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Modules/interface.cxx b/Source/Modules/interface.cxx index 5a9242399..83a5e5f8a 100644 --- a/Source/Modules/interface.cxx +++ b/Source/Modules/interface.cxx @@ -183,6 +183,7 @@ void Swig_interface_propagate_methods(Node *n) { if (Strcmp(symname, "$ignore") != 0) { Symtab *oldscope = Swig_symbol_setscope(Getattr(n, "symtab")); Node *on = Swig_symbol_add(symname, cn); + (void)on; assert(on == cn); // Features from the copied base class method are already present, now add in features specific to the added method in the derived class |