fileops.c:1618: warning: weak declaration of `_IO_do_write' after first use results in unspecified behavior
Andreas Jaeger
aj@suse.de
Fri Aug 23 02:53:00 GMT 2002
Roland McGrath <roland@redhat.com> writes:
> Those warnings have been appearing for a while now (I also see them with
> the RH variant of gcc-3.2), but I was too lazy to look into avoiding them
> until you spurred me. I was able to get rid of those warnings just by
> reordering the decls in those files. The weak decls don't need to appear
> before any other decl of the symbol, only before any reference in a
> function or another initializer.
Thanks a lot for fixing those!
>
> Now the only spurious warnings in my build are "declared static but never
> defined" for the things defined in asm and referenced via C decls. I don't
> know of any way to get rid of those.
We had them for ages and I don't know whether it's possible to fix
those properly at all :-(
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-hacker
mailing list