[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12056] trunk/blender: Patch/ Bugfix #7334 by 'gsr b3d:
GSR
gsr.b3d at infernal-iceberg.com
Mon Sep 17 17:38:14 CEST 2007
Hi,
jesterking at letwory.net (2007-09-17 at 1110.06 +0300):
> > // set that a parameter can be given, and will be ignored...
> > bool AttributeList::ignoreParameter(string name, string source) {
> > + name=source=(""); // remove warning
> > return false;
> > }
> >
>
> AFAIK the 'better' way to silence unused parameter warnings for C++ is
> not naming the parameter in the list: bool
> AttributeList::ignoreParameter(string, string) { return false; }
The file is full of the assign way, I just copied the style (including
the comment) when a full recompile showed some warnings. So if it gets
changed, it is not one but a nice handful to do (and some others in
different files with same comment, no idea how many without).
GSR
More information about the Bf-committers
mailing list