Skip to content

Commit a75c13f

Browse files
committed
Silence some unit test warnings
1 parent 3cba3cf commit a75c13f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Examples/test-suite/abstract_signature.i

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) abstract_foo; // Ruby, wrong class name
44
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) abstract_bar; // Ruby, wrong class name
5+
%warnfilter(SWIGWARN_LANG_OVERLOAD_SHADOW) meth; // Fortran prevents overloaded methods from overriding a base class non-overloaded method
56

67
%inline %{
78
class abstract_foo

Examples/test-suite/constant_directive.i

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
#ifdef SWIGOCAML
66
%warnfilter(SWIGWARN_PARSE_KEYWORD) val;
7+
#elif SWIGFORTRAN
8+
// Can't natively wrap function pointers with nonnative return type
9+
%warnfilter(SWIGWARN_LANG_NATIVE_UNIMPL,SWIGWARN_TYPEMAP_UNDEF) TYPE1FPTR1_CONSTANT1;
710
#endif
811

912
%inline %{

0 commit comments

Comments
 (0)