Mercurial > hg > octave-lojdl > gnulib-hg
changeset 9858:21157f1c35b7
Avoid some warnings from "gcc -Wshadow".
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 03 Apr 2008 00:07:16 +0200 |
parents | 2bd11e9c9605 |
children | a5fa8d721746 |
files | ChangeLog tests/test-vfprintf-posix.c tests/test-vprintf-posix.c tests/test-vsnprintf-posix.c tests/test-vsprintf-posix.c |
diffstat | 5 files changed, 21 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- a/tests/test-vfprintf-posix.c +++ b/tests/test-vfprintf-posix.c @@ -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 @@ return ret; } -#include "test-fprintf-posix.h" - int main (int argc, char *argv[]) {
--- a/tests/test-vprintf-posix.c +++ b/tests/test-vprintf-posix.c @@ -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 @@ return ret; } -#include "test-printf-posix.h" - int main (int argc, char *argv[]) {
--- a/tests/test-vsnprintf-posix.c +++ b/tests/test-vsnprintf-posix.c @@ -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 @@ return ret; } -#include "test-snprintf-posix.h" - int main (int argc, char *argv[]) {
--- a/tests/test-vsprintf-posix.c +++ b/tests/test-vsprintf-posix.c @@ -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 @@ return ret; } -#include "test-sprintf-posix.h" - int main (int argc, char *argv[]) {