+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.
/* 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
} \
while (0)
+#include "test-fprintf-posix.h"
+
static int
my_fprintf (FILE *fp, const char *format, ...)
{
return ret;
}
-#include "test-fprintf-posix.h"
-
int
main (int argc, char *argv[])
{
/* 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
} \
while (0)
+#include "test-printf-posix.h"
+
static int
my_printf (const char *format, ...)
{
return ret;
}
-#include "test-printf-posix.h"
-
int
main (int argc, char *argv[])
{
/* 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
} \
while (0)
+#include "test-snprintf-posix.h"
+
static int
my_snprintf (char *str, size_t size, const char *format, ...)
{
return ret;
}
-#include "test-snprintf-posix.h"
-
int
main (int argc, char *argv[])
{
/* 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
} \
while (0)
+#include "test-sprintf-posix.h"
+
static int
my_sprintf (char *str, const char *format, ...)
{
return ret;
}
-#include "test-sprintf-posix.h"
-
int
main (int argc, char *argv[])
{