silence warnings

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8097 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-12-27 22:37:15 +00:00
commit 86b84de318
17 changed files with 22 additions and 11 deletions

View file

@ -1,6 +1,6 @@
// bool typemaps check
%module bools
%warnfilter(454); /* memory leak when setting a ptr/ref variable */
%warnfilter(801) constbool; /* Ruby, wrong class name */
// bool constant

View file

@ -4,6 +4,8 @@ This testcase primarily test constant pointers, eg int* const. Only a getter is
%module constant_pointers
%warnfilter(454); /* memory leak when setting a ptr/ref variable */
%inline %{
int GlobalInt;

View file

@ -1,5 +1,7 @@
/* This is a basic test of proxy classes, used by chicken */
%warnfilter(454); /* memory leak when setting a ptr/ref variable */
%warnfilter(801) global_cint; /* Ruby, wrong constant name */
%module cpp_basic

View file

@ -1,5 +1,5 @@
%module(directors="1") director_basic
#pragma SWIG nowarn=470
#pragma SWIG nowarn=470,473
%{
#include <string>

View file

@ -1,5 +1,5 @@
%module(directors="1") director_detect
#pragma SWIG nowarn=470
#pragma SWIG nowarn=470,473
%warnfilter(822, 842) cloner; /* Java, C# covariant return types */

View file

@ -7,7 +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. */
%warnfilter(470,473) EnumDirector::Foo; /* Thread/reentrant unsafe wrapping, consider returning by value instead. */

View file

@ -1,5 +1,5 @@
%module(directors="1") director_frob;
#pragma SWIG nowarn=470
#pragma SWIG nowarn=470,473
%header %{
#include <iostream>

View file

@ -1,5 +1,5 @@
%module(directors="1",dirprot="1") director_nested
#pragma SWIG nowarn=470
#pragma SWIG nowarn=470,473
%{
#include <string>

View file

@ -4,7 +4,7 @@
%include std_string.i
// Using thread unsafe wrapping
%warnfilter(470) A;
%warnfilter(470,473) A;
%{
#include <vector>

View file

@ -1,5 +1,5 @@
%module(directors="1") director_wombat
#pragma SWIG nowarn=470
#pragma SWIG nowarn=470,473
%feature(director) Bar;
%feature(director) Foo<int>;

View file

@ -4,7 +4,7 @@
%include std_wstring.i
// Using thread unsafe wrapping
%warnfilter(470) A;
%warnfilter(470,473) A;
%{
#include <vector>

View file

@ -1,5 +1,7 @@
%module global_vars
%warnfilter(454); /* memory leak when setting a ptr/ref variable */
%include std_string.i
%inline %{

View file

@ -2,6 +2,8 @@
// This test is to check the intermediary class name can be changed (C# and Java only use intermediary classes at time of writing)
%module(directors="1", jniclassname="intermediary_classname", imclassname="intermediary_classname") "intermediary_classname"
%warnfilter(470,473);
// change the access to the intermediary class for testing purposes
%pragma(java) jniclassclassmodifiers="public class";
%pragma(csharp) imclassclassmodifiers="public class";

View file

@ -2,7 +2,7 @@
* Test Java director typemaps and features
*/
%warnfilter(470); /* Thread/reentrant unsafe wrapping, consider returning by value instead. */
%warnfilter(470,473); /* Thread/reentrant unsafe wrapping, consider returning by value instead. */
%module(directors="1") java_director

View file

@ -1,4 +1,5 @@
%module("nocastmode") li_implicit
#pragma SWIG nowarn=204
%include implicit.i
%inline

View file

@ -5,7 +5,7 @@
#pragma SWIG nowarn=801
// Using thread unsafe wrapping
#pragma SWIG nowarn=470
#pragma SWIG nowarn=470,473
/*
if your language has problems with MyInt* and/or Hello*,

View file

@ -4,6 +4,8 @@
%module reference_global_vars
%warnfilter(454); /* memory leak when setting a ptr/ref variable */
%inline %{
class TestClass {
public: