function attribute location

NightStrike nightstrike@gmail.com
Wed Sep 21 17:20:00 GMT 2011


If I want to mark a function parameter as unused, do I place it before
or after the type?

void xx ( __attribute__((unused)) int a ) { ... }
void xx (  int __attribute__((unused)) a ) { ... }

Which is correct?



More information about the Gcc-help mailing list