changeset 13407:97b8c45f787e

test-verify: avoid warning from gcc's -Wmissing-declarations * tests/test-verify.c (function): Declare to be static.
author Jim Meyering <meyering@redhat.com>
date Fri, 11 Jun 2010 09:15:16 +0200
parents afddde84348b
children 409615e3437a
files ChangeLog tests/test-verify.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2010-06-11  Jim Meyering  <meyering@redhat.com>
 
+	test-verify: avoid warning from gcc's -Wmissing-declarations
+	* tests/test-verify.c (function): Declare to be static.
+
 	test-inttostr.c: include <string.h> for use of strcmp
 	* tests/test-inttostr.c: Include <string.h> for strcmp declaration.
 
--- a/tests/test-verify.c
+++ b/tests/test-verify.c
@@ -42,7 +42,8 @@
   item = verify_true (1 == 1) * 0 + 17 /* should be ok */
 };
 
-int function (int n)
+static int
+function (int n)
 {
 #if EXP_FAIL == 3
   verify (n >= 0);                  /* should give ERROR: non-constant expression */