[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12056] trunk/blender: Patch/ Bugfix #7334 by 'gsr b3d:

Nathan Letwory jesterking at letwory.net
Mon Sep 17 10:10:06 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joshua Leung wrote:
> Revision: 12056
>           http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12056
> Author:   aligorith
> Date:     2007-09-17 08:11:06 +0200 (Mon, 17 Sep 2007)
> 
> Log Message:
> -----------
> Patch/Bugfix #7334 by 'gsr b3d:
> 
> Some more compiler warning fixes. Some of these seem to be specific to GCC 4.1
>  
>  // 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; }

Dunno if it works for C, too.

/Nathan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)

iD8DBQFG7jZeRnS9XhVfakkRAtvHAJ0ZT854P2tMFe9EvFiXeb+w6NC6CQCfaVrt
DtMkxtVdVHMQ1/4ve6B7vs0=
=oi5j
-----END PGP SIGNATURE-----


More information about the Bf-committers mailing list