Suppressing warnings

View: New views
3 Messages — Rating Filter:   Alert me  

Suppressing warnings

by Daniel Russel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm trying to suppress some swig warnings using the %warnfilter  
command, but can't get it to do anything (specifically with regards to  
warnings 403 and 473).
As an example swig input file:
%module "MyTest"

%warnfilter(403) Derived;
%warnfilter(403) Derived::method;
%warnfilter(403) Base::method;

%{
#include "swigheader.h"
%}

%include "swigheader.h"

header file:
class Base {
public:
   virtual void method()=0;
};

class Derived: public Base {
public:
   void new_method();
};



swig command:
swig -I. -Wall   -interface _IMP -python -c++ swigtest.i

warnings:
swigheader.h:6: Warning(403): Class 'Derived' might be abstract, no  
constructors generated,
swigheader.h:3: Warning(403): Method Base::method() might not be  
implemented.


Swig version 1.3.38.

Any way to make this work? Thanks.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user

Re: Suppressing warnings

by Bidon Gamelle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Use -Wextra instead of -Wall.


"14.3 Enabling extra warnings

...

When -Wall is used, it also disables all other warning filters"


franck



2009/10/8 Daniel Russel <drussel@...>
I'm trying to suppress some swig warnings using the %warnfilter
command, but can't get it to do anything (specifically with regards to
warnings 403 and 473).
As an example swig input file:
%module "MyTest"

%warnfilter(403) Derived;
%warnfilter(403) Derived::method;
%warnfilter(403) Base::method;

%{
#include "swigheader.h"
%}

%include "swigheader.h"

header file:
class Base {
public:
  virtual void method()=0;
};

class Derived: public Base {
public:
  void new_method();
};



swig command:
swig -I. -Wall   -interface _IMP -python -c++ swigtest.i

warnings:
swigheader.h:6: Warning(403): Class 'Derived' might be abstract, no
constructors generated,
swigheader.h:3: Warning(403): Method Base::method() might not be
implemented.


Swig version 1.3.38.

Any way to make this work? Thanks.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user

Re: Suppressing warnings

by Daniel Russel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Oct 8, 2009, at 12:28 AM, Bidon Gamelle wrote:

Hello,

Use -Wextra instead of -Wall.


"14.3 Enabling extra warnings

...

When -Wall is used, it also disables all other warning filters"
Thanks. Now that seems like something -Wall should warn about :-)
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user