Mail Archives: djgpp/1997/10/13/15:30:25
If you explicitly don't want to use the parameter foo in
void bar (int baz, int foo) {
}
Include the line at the start:
(void)foo;
This does nothing, generates no runtime code, but tells the compiler you
deliberately included foo to conform to some signature but are not using
it in bar().
--
.*. Where feelings are concerned, answers are rarely simple [GeneDeWeese]
-() < When I go to the theater, I always go straight to the "bag and mix"
`*' bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh
- Raw text -