+2017-04-22 Bruno Haible <bruno@clisp.org>
+
+ vasnprintf tests: Avoid warnings.
+ * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
+ test_vasnprintf, test_asnprintf): Don't define if there's nothing to
+ test.
+
2017-04-22 Bruno Haible <bruno@clisp.org>
sys_file tests: Avoid warning.
#include "macros.h"
+/* glibc >= 2.2 supports the 'I' flag, and in glibc >= 2.2.3 the fa_IR
+ locale defines the 'outdigits' to be U+06F0..U+06F9.
+ So we test for glibc >= 2.3. */
+#if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__
+
static void
test_function (char * (*my_asnprintf) (char *, size_t *, const char *, ...))
{
- /* glibc >= 2.2 supports the 'I' flag, and in glibc >= 2.2.3 the fa_IR
- locale defines the 'outdigits' to be U+06F0..U+06F9.
- So we test for glibc >= 2.3. */
-#if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__
/* Test that the 'I' flag is supported. */
{
size_t length;
ASSERT (length == strlen (result));
free (result);
}
-#endif
}
static char *
test_function (asnprintf);
}
+#endif
+
int
main (int argc, char *argv[])
{