From: David B. <dav...@da...> - 2006-11-30 15:38:23
|
On Nov 30, 2006, at 9:31 AM, Marc Lepage wrote: > I'm still not seeing it. I can: > > 1) Disable the warning entirely (all classes and all bases). > #pragma SWIG nowarn=401 > 2) Disable the warning for all bases in a specific class. > %warnfilter(401) Derived; // gets other bases too > > But what I want to do is disable the warning for only this base in all > classes. > > %warnfilter(401) Base; // doesn't work > %warnfilter(401) Base::func; // would work for a method but not for a > base > > Right now I'm using option 2 because it works and is limited to the > classes I've checked, even though it ignores all bases. Really I'd > like > to ignore only the specific base/derived pairs that I have personally > verified are OK. Since %warnfilter attaches a filter to a specific declaration, I don't know how you would use it to attach a filter to a declaration that doesn't exist (i.e., the base class). You might be able to use %warnfilter as a mode like this: %warnfilter(401); ... applies to all declarations that follow %feature("warnfilter",""); // Turn it off. Cheers, Dave |