Re: GCC ignores function attributes

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

 



On 12/06/14 21:47, Jonathan Wakely wrote:
On 12 June 2014 17:48, Nikos Chantziaras wrote:
   int __attribute__((visibility("hidden"))) spec();


But this isn't hidden:

int* __attribute__((visibility("hidden"))) spec();

because the attribute binds to the return type, which is what the
warning tells you.

So what's the difference between 'int' and 'int*' here? Why does:

 int HIDE spec();

bind to 'spec' but

  int* HIDE spec();

doesn't?





[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