[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: avoiding longjmp/vfork warnings
From: |
Bruno Haible |
Subject: |
Re: avoiding longjmp/vfork warnings |
Date: |
Fri, 27 May 2005 16:25:30 -0000 |
User-agent: |
KMail/1.5 |
Akim Demaille wrote:
> Wouldn't
>
> (void) &from_in_fd;
>
> do the trick? Taking the address of a variable should ensure it is
> not in a register.
This doesn't work any more in gcc-4.0. See
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21160
The gcc people recommend to use 'volatile' instead; this is consistent
with ISO C 7.13.2.1.(3).
Bruno