]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
isinf-no-c++-tests: pacify -Wshadow
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 13 Jan 2026 15:51:58 +0000 (07:51 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 13 Jan 2026 16:11:39 +0000 (08:11 -0800)
* tests/test-isinf.c (mem_long_double): Rename this local type
from memory_long_double, to avoid confusion with the top-level
memory_long_double in snan.h.  All uses changed.

ChangeLog
tests/test-isinf.c

index 9d7e439c2b2668ab09e7fd9a3b5f8732910914c1..8ce452f50d0fa154d914872bc01857691bae7629 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2026-01-13  Paul Eggert  <eggert@cs.ucla.edu>
+
+       isinf-no-c++-tests: pacify -Wshadow
+       * tests/test-isinf.c (mem_long_double): Rename this local type
+       from memory_long_double, to avoid confusion with the top-level
+       memory_long_double in snan.h.  All uses changed.
+
 2025-12-04  Basil L. Contovounesios  <basil@contovou.net>
 
        doc: Add maintainer-makefile section to manual.
index 4029768562beef3f5726d322d880d6bd93d764b3..9081aa8755c987b5c179ae4a94e3291e74ca2548 100644 (file)
@@ -124,7 +124,7 @@ test_isinfl ()
   #define NWORDS \
     ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
   typedef union { unsigned int word[NWORDS]; long double value; }
-          memory_long_double;
+          mem_long_double;
 /* Representation of an 80-bit 'long double' as an initializer for a sequence
    of 'unsigned int' words.  */
 # ifdef WORDS_BIGENDIAN
@@ -138,39 +138,39 @@ test_isinfl ()
      { mantlo, manthi, exponent }
 # endif
   { /* Quiet NaN.  */
-    static memory_long_double x =
+    static mem_long_double x =
       { .word = LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
     ASSERT (!isinf (x.value));
   }
   {
     /* Signalling NaN.  */
-    static memory_long_double x =
+    static mem_long_double x =
       { .word = LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
     ASSERT (!isinf (x.value));
   }
   /* isinf should return something for noncanonical values.  */
   { /* Pseudo-NaN.  */
-    static memory_long_double x =
+    static mem_long_double x =
       { .word = LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
     ASSERT (isinf (x.value) || !isinf (x.value));
   }
   { /* Pseudo-Infinity.  */
-    static memory_long_double x =
+    static mem_long_double x =
       { .word = LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
     ASSERT (isinf (x.value) || !isinf (x.value));
   }
   { /* Pseudo-Zero.  */
-    static memory_long_double x =
+    static mem_long_double x =
       { .word = LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
     ASSERT (isinf (x.value) || !isinf (x.value));
   }
   { /* Unnormalized number.  */
-    static memory_long_double x =
+    static mem_long_double x =
       { .word = LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
     ASSERT (isinf (x.value) || !isinf (x.value));
   }
   { /* Pseudo-Denormal.  */
-    static memory_long_double x =
+    static mem_long_double x =
       { .word = LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
     ASSERT (isinf (x.value) || !isinf (x.value));
   }