Skip to content

Commit aef3bde

Browse files
committed
Remove flag and fix interface for still-failing member_pointer
TODO: make these opaque member function pointers typesafe.
1 parent e300b7d commit aef3bde

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

Examples/test-suite/fortran/member_pointer_runme.F90

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ program member_pointer_runme
3030
call set_areavar(perim_memptr)
3131
val = do_op(s, get_areavar())
3232
ASSERT(val == 40.0d0)
33-
34-
! Try the external constants
35-
perim_memptr = PERIMPT
36-
val = do_op(s, get_areavar())
37-
ASSERT(val == 40.0d0)
3833
end program
3934

4035

Examples/test-suite/member_pointer.i

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
#pragma error_messages (off, badargtype2w) /* Formal argument ... is being passed extern "C" ... */
66
#pragma error_messages (off, wbadinit) /* Using extern "C" ... to initialize ... */
77
#pragma error_messages (off, wbadasg) /* Assigning extern "C" ... */
8-
#elif __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
9-
/* passing NULL into SWIG constant member function wrapper in Fortran raises a warning because it's an int rather than a nullptr_t */
10-
#pragma GCC diagnostic ignored "-Wconversion-null"
118
#endif
129
%}
1310

0 commit comments

Comments
 (0)