Author: rodrigc
Date: Sun Sep 20 03:55:03 2015
New Revision: 288006
URL: https://svnweb.freebsd.org/changeset/base/288006

Log:
  Add declarations to eliminate -Wmissing-prototypes warnings

Modified:
  head/lib/libc/stdio/_flock_stub.c
  head/lib/libc/stdio/fgetwln.c
  head/lib/libc/stdio/findfp.c

Modified: head/lib/libc/stdio/_flock_stub.c
==============================================================================
--- head/lib/libc/stdio/_flock_stub.c   Sun Sep 20 03:53:08 2015        
(r288005)
+++ head/lib/libc/stdio/_flock_stub.c   Sun Sep 20 03:55:03 2015        
(r288006)
@@ -55,6 +55,9 @@ __weak_reference(_flockfile_debug_stub, 
 __weak_reference(_ftrylockfile, ftrylockfile);
 __weak_reference(_funlockfile, funlockfile);
 
+void _flockfile_debug_stub(FILE *fp, char *fname, int lineno);
+int _ftrylockfile(FILE *fp);
+
 void
 _flockfile(FILE *fp)
 {

Modified: head/lib/libc/stdio/fgetwln.c
==============================================================================
--- head/lib/libc/stdio/fgetwln.c       Sun Sep 20 03:53:08 2015        
(r288005)
+++ head/lib/libc/stdio/fgetwln.c       Sun Sep 20 03:55:03 2015        
(r288006)
@@ -40,6 +40,8 @@ __FBSDID("$FreeBSD$");
 #include "local.h"
 #include "xlocale_private.h"
 
+wchar_t *fgetwln_l(FILE * __restrict fp, size_t *lenp, locale_t locale);
+
 wchar_t *
 fgetwln_l(FILE * __restrict fp, size_t *lenp, locale_t locale)
 {

Modified: head/lib/libc/stdio/findfp.c
==============================================================================
--- head/lib/libc/stdio/findfp.c        Sun Sep 20 03:53:08 2015        
(r288005)
+++ head/lib/libc/stdio/findfp.c        Sun Sep 20 03:55:03 2015        
(r288006)
@@ -164,6 +164,7 @@ found:
  */
 __warn_references(f_prealloc, 
        "warning: this program uses f_prealloc(), which is not recommended.");
+void f_prealloc_void();
 
 void
 f_prealloc(void)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to