This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] <stdio.h> missing prototypes warning
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: newlib at sources dot redhat dot com
- Date: Thu, 02 Apr 2009 20:52:58 -0500
- Subject: [PATCH] <stdio.h> missing prototypes warning
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Caught this building a package which was using -Wall
- -Wmissing-prototypes -Werror. Patch attached.
Yaakov
Cygwin/X
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEAREIAAYFAknVa/oACgkQpiWmPGlmQSNzHwCfdUg8Q18njpyxtxKcBX7854bo
gvAAniISswFGisluz7OvqZBFZc8FASJQ
=+ple
-----END PGP SIGNATURE-----
2009-04-02 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* libc/include/stdio.h [__SCLE] (__sgetc_r): Prototype before define
to avoid a warning with -Wmissing-prototypes.
Index: ../newlib/libc/include/stdio.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/stdio.h,v
retrieving revision 1.55
diff -u -r1.55 stdio.h
--- libc/include/stdio.h 14 Mar 2009 12:14:08 -0000 1.55
+++ libc/include/stdio.h 3 Apr 2009 01:48:09 -0000
@@ -612,6 +612,8 @@
#define _ELIDABLE_INLINE __inline__
#endif
+_ELIDABLE_INLINE int __sgetc_r(struct _reent *__ptr, FILE *__p);
+
_ELIDABLE_INLINE int __sgetc_r(struct _reent *__ptr, FILE *__p)
{
int __c = __sgetc_raw_r(__ptr, __p);