changeset 15459:1b5ac5980a11

test-select.h: avoid warning from gcc's -Wmissing-declarations * tests/test-select.h (test_function): Declare as "static".
author Jim Meyering <meyering@redhat.com>
date Sun, 24 Jul 2011 23:37:17 +0200
parents f4cc0c20e892
children ec2cc408342a
files ChangeLog tests/test-select.h
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-24  Jim Meyering  <meyering@redhat.com>
+
+	test-select.h: avoid warning when using gcc's -Wmissing-declarations
+	* tests/test-select.h (test_function): Declare as "static".
+
 2011-07-24  Bruno Haible  <bruno@clisp.org>
 
 	doc: Mention the effects of AC_SYS_LARGEFILE.
--- a/tests/test-select.h
+++ b/tests/test-select.h
@@ -359,7 +359,7 @@
 
 /* Do them all.  */
 
-int
+static int
 test_function (select_fn my_select)
 {
   int result;