This is the mail archive of the
mailing list for the binutils project.
Re: Silence compiler warning on
On Fri, May 05, 2006 at 11:41:18AM +0200, Mark Kettenis wrote:
> Unfortunately not :(
> configure:11800: checking if we can redeclare _exit
> configure:11821: gcc -c -g -O2 conftest.c >&5
> conftest.c:80: ../include/ansidecl.h: No such file or directory
!!! How the heck did that work for me? Oh, there's an <ansidecl.h> on
> However, it seems that this only happens with GCC 2.95.3 (and probably
> older versions). Newer GCC versions seem to be aware of the fact that
> _exit() will never return. Perhaps people should just upgrade to a
> newer GCC or use --disable-werror.
Yes, newer GCCs do automatically add attributes to system header
functions. I'm just going to punt then; you can take another shot at
it if you'd like :-)