Macro to mark a variable as unused. More...
Go to the source code of this file.
Defines | |
#define | UNUSED(v) v |
Macro to mark a variable as unused.
int UNUSED(v);
Of course, if a variable is really unused, it's better to simply remove it rather than trying to paper over the warning like this.
But there are some cases where in regression tests one might want to legitimately have an unused variable (particularly with gcc 4.6, where the unused warnings also catch variables assigned to but not read). This is really meant for these cases.