[arch-general] Fw: problem with gcc and __unused function attribute
17 May
2008
17 May
'08
7:28 p.m.
On 17/05/08, Byron Clark wrote:
On Sat, May 17, 2008 at 05:08:37PM +0000, Michael Krauss wrote:
static void sig_alarm(int signo __unused) { longjmp(timeout_alarm, 1); }
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); }
This one works, thanks. But I wonder how it is compiled on DragonFly because they use gcc4.1? It doesn't greatly matter. I will ask when I am sending patches upstream. Kind regards, Michael Krauss
6028
Age (days ago)
6028
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michael Krauss