Mail Archives: djgpp/1997/10/28/00:32:10
Erik Max Francis <max AT alcyone DOT com> wrote:
> `-Wunused'
> Warn whenever a variable is unused aside from its declaration,
> whenever a function is declared static but never defined, whenever
> a label is declared but not used, and whenever a statement
> computes a result that is explicitly not used.
> To suppress this warning for an expression, simply cast it to
> void. For unused variables and parameters, use the `unused'
> attribute (*note Variable Attributes::.).
Didn't you read that last paragraph and follow the link?
int variable __attribute__((unused));
=> no unused warning.
- Raw text -