[PATCH]prevent warnings in libc/reent folder

Corinna Vinschen vinschen@redhat.com
Fri Feb 9 17:23:00 GMT 2018


On Feb  8 11:36, Jaap de Wolff wrote:
> At this moment we get warnings while we compile the libc/reent folder.
> This patch will prevent this

Apart from the patch format, I'm not overly happy with adding all these
forward declararations to C files.  For instance, _fstat is already
declared in sys/stat.h and including this file should have precedence
over a local forward declaration.

Look at newlib/libc/include/sys/stat.h.  Check where the functions
are prototyped and include the matching header.  If functions are not
prototyped, add a prototype to the correct header.  The correct
header is the one where the base function (no trailing underscore)
is defined.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20180209/798f710a/attachment.sig>


More information about the Newlib mailing list