Re: problem with gcc and __unused function attribute

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



On Sat, May 17, 2008 at 05:08:37PM +0000, Michael Krauss wrote:
> There is this function in net.c:
> 
> static void
> sig_alarm(int signo __unused)
> {
> 	longjmp(timeout_alarm, 1);
> }
> 
> ggc can't handle the __unused attribute:

gcc can handle an unused variable attribute, but a different syntax is
used:

static void
sig_alarm(int signo __attribute__((unused)))
{
    longjmp(timeout_alarm, 1);
}

-- 
Byron Clark



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux