suppress warning 470
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7127 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a7813a1bf5
commit
f9e3521a10
2 changed files with 6 additions and 3 deletions
|
|
@ -7,6 +7,7 @@
|
|||
%warnfilter(801) EnumDirector::Foo::ciao; /* Ruby, wrong constant name */
|
||||
%warnfilter(801) EnumDirector::Foo::aufwiedersehen; /* Ruby, wrong constant name */
|
||||
%warnfilter(801) EnumDirector::Foo::adios; /* Ruby, wrong constant name */
|
||||
%warnfilter(470) EnumDirector::Foo; /* Thread/reentrant unsafe wrapping, consider returning by value instead. */
|
||||
|
||||
|
||||
|
||||
|
|
@ -32,10 +33,10 @@ namespace EnumDirector {
|
|||
virtual Hello say_hello(Hello){ return hello;}
|
||||
virtual Hello say_hi(A *a){ return hi;}
|
||||
virtual Bye say_bye(Bye b){ return b;}
|
||||
virtual Hello say_hi_ref(const Hello & h){ return h;}
|
||||
virtual const Hello & say_hi_ref(const Hello & h){ return h;}
|
||||
|
||||
Hello ping(Hello h){ return say_hi(h);}
|
||||
Hello ping_ref(const Hello &h){ return say_hi_ref(h);}
|
||||
const Hello & ping_ref(const Hello &h){ return say_hi_ref(h);}
|
||||
Bye ping_member_enum(Bye b){ return say_bye(b);}
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
* Test Java director typemaps and features
|
||||
*/
|
||||
|
||||
%warnfilter(470); /* Thread/reentrant unsafe wrapping, consider returning by value instead. */
|
||||
|
||||
%module(directors="1") java_director
|
||||
|
||||
%typemap(javafinalize) SWIGTYPE %{
|
||||
|
|
@ -64,7 +66,7 @@ private:
|
|||
%include "std_string.i"
|
||||
|
||||
%feature("director") Quux;
|
||||
SWIG_DIRECTOR_OWNED(Quux)
|
||||
//SWIG_DIRECTOR_OWNED(Quux)
|
||||
|
||||
class Quux {
|
||||
public:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue