Hi, On Thu, Mar 27, 2003 at 08:21:35AM +0900, Olaf Meeuwissen wrote: > > From: der Mouse <[email protected]> > > > > - A lot of "unused parameter" warnings. I saw some SANE code that does > > "var=var;" to quell such warnings, so presumably at least some people > > care. > > I've seen such code as well and find it horribly inelegant. Any good > reasons why you can not replace: > > void useless_func( int unused_parameter ) > { > unused_parameter = unused_parameter; > } > > with: > > void useless_func( int ) > { > } > > This gets rid of the "unused parameter" warnings just fine (with gcc > at least) and very clearly indicates that useless_func does not give > a damn about the parameter it gets passed.
With gcc-3.2 I'm getting the following error when I try your solution: parameter name omitted bye, Henning
