suppress warning 470

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7127 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2005-03-30 22:31:53 +00:00
commit 3cb0932476
2 changed files with 6 additions and 3 deletions

View file

@ -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);}
};

View file

@ -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: