test-verify: avoid warning from gcc's -Wmissing-declarations
authorJim Meyering <meyering@redhat.com>
Fri, 11 Jun 2010 07:15:16 +0000 (09:15 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 11 Jun 2010 07:15:16 +0000 (09:15 +0200)
* tests/test-verify.c (function): Declare to be static.

ChangeLog
tests/test-verify.c

index a8443e0..7b10dbf 100644 (file)
--- 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.
 
index 47eae2b..3f89ba9 100644 (file)
@@ -42,7 +42,8 @@ enum
   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 */