* 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 | 7 +++++++ tests/test-isinf.c | 16 ++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog index 9d7e439c2b..8ce452f50d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2026-01-13 Paul Eggert <[email protected]> + + 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 <[email protected]> doc: Add maintainer-makefile section to manual. diff --git a/tests/test-isinf.c b/tests/test-isinf.c index 4029768562..9081aa8755 100644 --- a/tests/test-isinf.c +++ b/tests/test-isinf.c @@ -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)); } -- 2.51.0
