4 ms·
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
by josephruscio 16y ago
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 */}