Your compiler may offer a more formal way to indicate that it's acceptable for a parameter to be unused. In gcc it's an attribute:
int foobar(int foo, int bar __attribute__((unused))) { /* Code that does not use bar */}
int foobar(int foo, int bar __attribute__((unused))) { /* Code that does not use bar */}
No comments yet.