Avoid some warnings from "gcc -Wshadow".
authorBruno Haible <bruno@clisp.org>
Wed, 2 Apr 2008 22:07:16 +0000 (00:07 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 2 Apr 2008 22:07:16 +0000 (00:07 +0200)
ChangeLog
tests/test-vfprintf-posix.c
tests/test-vprintf-posix.c
tests/test-vsnprintf-posix.c
tests/test-vsprintf-posix.c

index 9232d1d..0fae6b5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-04-02  Bruno Haible  <bruno@clisp.org>
+
+       Avoid some warnings from "gcc -Wshadow".
+       * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
+       * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
+       * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
+       * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
+       Reported by Jim Meyering.
+
 2008-04-01  Bruno Haible  <bruno@clisp.org>
 
        Fix test to work on IRIX 6.5 with cc.
index 2af148d..68fc217 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of POSIX compatible vfprintf() function.
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -38,6 +38,8 @@
     }                                                                       \
   while (0)
 
+#include "test-fprintf-posix.h"
+
 static int
 my_fprintf (FILE *fp, const char *format, ...)
 {
@@ -50,8 +52,6 @@ my_fprintf (FILE *fp, const char *format, ...)
   return ret;
 }
 
-#include "test-fprintf-posix.h"
-
 int
 main (int argc, char *argv[])
 {
index 78a2506..d30a95f 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of POSIX compatible vfprintf() function.
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -38,6 +38,8 @@
     }                                                                       \
   while (0)
 
+#include "test-printf-posix.h"
+
 static int
 my_printf (const char *format, ...)
 {
@@ -50,8 +52,6 @@ my_printf (const char *format, ...)
   return ret;
 }
 
-#include "test-printf-posix.h"
-
 int
 main (int argc, char *argv[])
 {
index 110cf69..841a1ec 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of POSIX compatible vsnprintf() function.
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -40,6 +40,8 @@
     }                                                                       \
   while (0)
 
+#include "test-snprintf-posix.h"
+
 static int
 my_snprintf (char *str, size_t size, const char *format, ...)
 {
@@ -52,8 +54,6 @@ my_snprintf (char *str, size_t size, const char *format, ...)
   return ret;
 }
 
-#include "test-snprintf-posix.h"
-
 int
 main (int argc, char *argv[])
 {
index 6c59c64..a2a1307 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of POSIX compatible vsprintf() function.
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -40,6 +40,8 @@
     }                                                                       \
   while (0)
 
+#include "test-sprintf-posix.h"
+
 static int
 my_sprintf (char *str, const char *format, ...)
 {
@@ -52,8 +54,6 @@ my_sprintf (char *str, const char *format, ...)
   return ret;
 }
 
-#include "test-sprintf-posix.h"
-
 int
 main (int argc, char *argv[])
 {