[Bf-committers] Solution for suppressing "unused parameter"
warnings?
Davide Vercelli
davide.vercelli at gmail.com
Sat May 27 17:10:43 CEST 2006
On 5/27/06, Ken Hughes <khughes at pacific.edu> wrote:
> I'm getting annoyed by all these warnings for "unused parameters",
> mainly in the Python code. For my own sanity, I've started using
> someone else's trick of renaming unused parameters to "X_unused"
In C++ there's still another way to go, which I always use, that is
not naming the attribute, say:
static PyObject *M_Mesh_New(BPy_Mesh *);
this usually shuts the compiler up. Works both in g++ and MSVC.
Unfortunately it is an error in gcc.
More information about the Bf-committers
mailing list