[Bf-committers] Re: Solution for suppressing "unused parameter"
gsr.b3d at infernal-iceberg.com
Sat May 27 20:21:03 CEST 2006
sswaney at centurytel.net (2006-05-27 at 1355.49 -0400):
> On Sat, May 27, 2006 at 07:26:51AM -0700, Ken Hughes wrote:
> > I'm getting annoyed by all these warnings for "unused parameters",
> > mainly in the Python code.
> For reasons I can not quite put my finger on, setting self = NULL;
> strikes me somehow as lame. It does, however, have the advantage of
> working everyewhere.
If that hack is used, I would do it via something else instead of NULL
directly, so it is clear why people do such "lame" thing. Basically
"#define UNUSED NULL" or "#define IGNORE 0" or whatever you choose but
something that clearly says "hey, this is just filler, ignore it" and
that can have the reasoning written in a comment above the #define
line(s) (== comments that say why and how, thus avoiding silly
questions, good comments).
More information about the Bf-committers