From 3b28e3a49d503dba36107a320a372db96f0f023c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 30 Jul 2024 03:14:00 +0200 Subject: [PATCH] vaszprintf-posix tests: Fix a gcc warning. * tests/test-vaszprintf-posix.c (test_function): Remove an unused variable. --- ChangeLog | 6 ++++++ tests/test-vaszprintf-posix.c | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b75c07d6f9..3b5086f41a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-07-29 Bruno Haible + + vaszprintf-posix tests: Fix a gcc warning. + * tests/test-vaszprintf-posix.c (test_function): Remove an unused + variable. + 2024-07-29 Bruno Haible Use attribute [[nodiscard]] wherever glibc uses __wur. diff --git a/tests/test-vaszprintf-posix.c b/tests/test-vaszprintf-posix.c index 0e6af1c371..d3f03965fe 100644 --- a/tests/test-vaszprintf-posix.c +++ b/tests/test-vaszprintf-posix.c @@ -57,8 +57,6 @@ strisnan (const char *string, size_t start_index, size_t end_index, int uppercas static void test_function (ptrdiff_t (*my_aszprintf) (char **, const char *, ...)) { - char result[5000]; - /* Test the support of the 'a' and 'A' conversion specifier for hexadecimal output of floating-point numbers. */ -- 2.39.5