Fix new warnings
Andreas Jaeger
aj@suse.de
Fri Aug 17 04:36:00 GMT 2001
These warnings are fixed by the appended patch:
obstack.c:486: warning: implicit declaration of function `__fwprintf'
getpass.c:84: warning: implicit declaration of function `__fwprintf'
getpass.c:105: warning: implicit declaration of function `putwc_unlocked'
Ok to commit?
Andreas
2001-08-17 Andreas Jaeger <aj@suse.de>
* misc/getpass.c: Include wchar.h for prototypes.
* malloc/obstack.c: Likewise.
============================================================
Index: misc/getpass.c
--- misc/getpass.c 2001/08/17 04:48:15 1.15
+++ misc/getpass.c 2001/08/17 11:28:48
@@ -22,6 +22,7 @@
#include <unistd.h>
#ifdef USE_IN_LIBIO
+# include <wchar.h>
# define flockfile(s) _IO_flockfile (s)
# define funlockfile(s) _IO_funlockfile (s)
#endif
============================================================
Index: malloc/obstack.c
--- malloc/obstack.c 2001/08/17 04:48:08 1.16
+++ malloc/obstack.c 2001/08/17 11:28:48
@@ -46,6 +46,9 @@
#endif
#endif
+#if defined _LIBC && defined USE_IN_LIBIO
+# include <wchar.h>
+#endif
#ifndef ELIDE_CODE
--
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