Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 2015 03:55:04 +0000 (UTC)
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r288006 - head/lib/libc/stdio
Message-ID:  <201509200355.t8K3t4md068069@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509200355.t8K3t4md068069>