function attribute location

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux