add support for named warning codes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8249 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6f0ac941e8
commit
89e7497ac6
124 changed files with 672 additions and 282 deletions
|
|
@ -1,5 +1,25 @@
|
|||
Version 1.3.28 (unreleased).
|
||||
===========================
|
||||
01/06/2006: mmatus
|
||||
Add 'named' warning codes, now besides of:
|
||||
|
||||
%warnfilter(813);
|
||||
|
||||
you can use
|
||||
|
||||
%warnfilter(SWIGWARN_JAVA_MULTIPLE_INHERITANCE);
|
||||
|
||||
just use the same code name found in Source/Include/swigwarn.h
|
||||
plus the 'SWIG' prefix.
|
||||
|
||||
If you add a new warning code, remember to run:
|
||||
|
||||
make Lib/swigwarn.swg
|
||||
|
||||
in the swig root directory and commit both files. You need
|
||||
a machine with awk/echo to do that.
|
||||
|
||||
|
||||
|
||||
01/05/2006: wsfulton
|
||||
Fix for %extend and static const integral types, eg:
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include "example.h"
|
||||
%}
|
||||
|
||||
#pragma SWIG nowarn=454
|
||||
#pragma SWIG nowarn=SWIGWARN_TYPEMAP_SWIGTYPELEAK
|
||||
|
||||
/* Some global variable declarations */
|
||||
%inline %{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/* File : example.i */
|
||||
%module example
|
||||
#pragma SWIG nowarn=362
|
||||
#pragma SWIG nowarn=SWIGWARN_IGNORE_OPERATOR_EQ
|
||||
%{
|
||||
#include "example.h"
|
||||
%}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include "example.h"
|
||||
%}
|
||||
|
||||
#pragma SWIG nowarn=454
|
||||
#pragma SWIG nowarn=SWIGWARN_TYPEMAP_SWIGTYPELEAK
|
||||
|
||||
/* Some global variable declarations */
|
||||
%inline %{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* File : example.i */
|
||||
%module example
|
||||
|
||||
%warnfilter(362);
|
||||
%warnfilter(SWIGWARN_IGNORE_OPERATOR_EQ);
|
||||
|
||||
|
||||
%{
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
%{
|
||||
#include "example.h"
|
||||
%}
|
||||
#pragma SWIG nowarn=454
|
||||
#pragma SWIG nowarn=SWIGWARN_TYPEMAP_SWIGTYPELEAK
|
||||
|
||||
/* Some global variable declarations */
|
||||
%inline %{
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include "example.h"
|
||||
%}
|
||||
|
||||
#pragma SWIG nowarn=454
|
||||
#pragma SWIG nowarn=SWIGWARN_TYPEMAP_SWIGTYPELEAK
|
||||
|
||||
/* Some global variable declarations */
|
||||
%inline %{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
%module abstract_access
|
||||
|
||||
%warnfilter(517) A;
|
||||
%warnfilter(SWIGWARN_LANG_DIRECTOR_ABSTRACT) A;
|
||||
|
||||
%inline %{
|
||||
class A {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
%module abstract_inherit
|
||||
|
||||
%warnfilter(403) Spam;
|
||||
%warnfilter(403) Bar;
|
||||
%warnfilter(SWIGWARN_TYPE_ABSTRACT) Spam;
|
||||
%warnfilter(SWIGWARN_TYPE_ABSTRACT) Bar;
|
||||
|
||||
%inline %{
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
%module abstract_inherit_ok
|
||||
|
||||
%feature("notabstract") Spam;
|
||||
%warnfilter(403) Spam;
|
||||
%warnfilter(SWIGWARN_TYPE_ABSTRACT) Spam;
|
||||
|
||||
%inline %{
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
%module abstract_signature
|
||||
|
||||
%warnfilter(801) abstract_foo; // Ruby, wrong class name
|
||||
%warnfilter(801) abstract_bar; // Ruby, wrong class name
|
||||
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) abstract_foo; // Ruby, wrong class name
|
||||
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) abstract_bar; // Ruby, wrong class name
|
||||
|
||||
%inline %{
|
||||
class abstract_foo
|
||||
|
|
|
|||
|
|
@ -1,7 +1,11 @@
|
|||
%module(ruby_minherit="1") abstract_virtual
|
||||
|
||||
%warnfilter(813,833,870) D; /* C#, Java, Php4 multiple inheritance */
|
||||
%warnfilter(813,833,870) E; /* C#, Java, Php4 multiple inheritance */
|
||||
%warnfilter(SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
|
||||
SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
|
||||
SWIGWARN_PHP4_MULTIPLE_INHERITANCE) D; /* C#, Java, Php4 multiple inheritance */
|
||||
%warnfilter(SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
|
||||
SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
|
||||
SWIGWARN_PHP4_MULTIPLE_INHERITANCE) E; /* C#, Java, Php4 multiple inheritance */
|
||||
|
||||
%inline %{
|
||||
struct A
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
%module arrays_dimensionless
|
||||
|
||||
%warnfilter(462) globalints; /* Unable to set variable of type int [] */
|
||||
%warnfilter(462) ints; /* Unable to set variable of type int [] */
|
||||
%warnfilter(SWIGWARN_TYPEMAP_VARIN_UNDEF) globalints; /* Unable to set variable of type int [] */
|
||||
%warnfilter(SWIGWARN_TYPEMAP_VARIN_UNDEF) ints; /* Unable to set variable of type int [] */
|
||||
|
||||
%inline %{
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
This test case tests that various types of arrays are working.
|
||||
*/
|
||||
|
||||
%warnfilter(451,462);
|
||||
%warnfilter(SWIGWARN_TYPEMAP_CHARLEAK,SWIGWARN_TYPEMAP_VARIN_UNDEF);
|
||||
|
||||
%module arrays_global
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
%module bloody_hell
|
||||
|
||||
%warnfilter(801) kMaxIOCTLSpaceParmsSize;
|
||||
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) kMaxIOCTLSpaceParmsSize;
|
||||
|
||||
#define kMaxIOCTLSpaceParmsSize 128
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// bool typemaps check
|
||||
%module bools
|
||||
%warnfilter(454); /* memory leak when setting a ptr/ref variable */
|
||||
%warnfilter(801) constbool; /* Ruby, wrong class name */
|
||||
%warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK); /* memory leak when setting a ptr/ref variable */
|
||||
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) constbool; /* Ruby, wrong class name */
|
||||
|
||||
// bool constant
|
||||
%constant bool constbool=false;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ below.
|
|||
|
||||
%module char_strings
|
||||
|
||||
%warnfilter(462) global_char_array1; // Unable to set variable of type char[]
|
||||
%warnfilter(SWIGWARN_TYPEMAP_VARIN_UNDEF) global_char_array1; // Unable to set variable of type char[]
|
||||
|
||||
%{
|
||||
#define OTHERLAND_MSG "Little message from the the safe world."
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ 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 */
|
||||
%warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK); /* memory leak when setting a ptr/ref variable */
|
||||
|
||||
%inline %{
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
%module contract
|
||||
|
||||
%warnfilter(802,813,833,870) C; /* Ruby, C#, Java, Php4 multiple inheritance */
|
||||
%warnfilter(SWIGWARN_RUBY_MULTIPLE_INHERITANCE,
|
||||
SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
|
||||
SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
|
||||
SWIGWARN_PHP4_MULTIPLE_INHERITANCE) C; /* Ruby, C#, Java, Php4 multiple inheritance */
|
||||
|
||||
#ifdef SWIGCSHARP
|
||||
%ignore B::bar; // otherwise get a warning: `C.bar' no suitable methods found to override
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/* This is a basic test of proxy classes, used by chicken */
|
||||
|
||||
%warnfilter(454); /* memory leak when setting a ptr/ref variable */
|
||||
%warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK); /* memory leak when setting a ptr/ref variable */
|
||||
|
||||
%warnfilter(801) global_cint; /* Ruby, wrong constant name */
|
||||
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) global_cint; /* Ruby, wrong constant name */
|
||||
|
||||
%module cpp_basic
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue