[Bf-committers] Re: Solution for suppressing "unused parameter"
warnings?
Jean-Luc Peurière
jlp at nerim.net
Sun May 28 10:19:43 CEST 2006
Le 28 mai 06 à 01:20, Ed Halley a écrit :
>
> #define UNUSED(x) { x = x; }
>
> int foo(int a, char* b, float c[3])
> {
> UNUSED(a);
> UNUSED(b);
> UNUSED(c[0])
> return 0;
> }
not good from an optimisation point of view.
you can either use the unused attribute (but that may not be supported
by all compilers), or pass the following compiling option to gcc :
-Wno-unused-parameter
JLuc
More information about the Bf-committers
mailing list