bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

vaszprintf-posix tests: Fix a gcc warning


From: Bruno Haible
Subject: vaszprintf-posix tests: Fix a gcc warning
Date: Tue, 30 Jul 2024 03:14:12 +0200

This patch fixes a gcc warning about an unused variable.


2024-07-29  Bruno Haible  <bruno@clisp.org>

        vaszprintf-posix tests: Fix a gcc warning.
        * tests/test-vaszprintf-posix.c (test_function): Remove an unused
        variable.

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.  */
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]