[arch-general] problem with gcc and __unused function attribute
Byron Clark
byron at theclarkfamily.name
Sat May 17 12:37:11 EDT 2008
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
More information about the arch-general
mailing list