Hi *GCC*:

On page:

https://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Function-Attributes.html

you show the attribute coming after the parameter list.  But when I try
this, I  get the following:

#include <stdlib.h>

void __attribute__ ((noreturn)) aaa()  // OK
 {exit(0);
 }

void bbb() __attribute__ ((noreturn))  // *error*: attributes should be
specified before the declarator in a function definition
 {exit(0);
 }

-- 
Thanks,

Phil <https://metacpan.org/author/PRBRENAN>

Philip R Brenan <https://metacpan.org/author/PRBRENAN>

Reply via email to