* tests/test-snan-1.c (main): Mark nanf, nand, nanl as possibly unused.
* tests/test-snan-2.c (main): Likewise.
+2023-10-14 Bruno Haible <bruno@clisp.org>
+
+ snan tests: Fix "unused variable" warnings on i386.
+ * tests/test-snan-1.c (main): Mark nanf, nand, nanl as possibly unused.
+ * tests/test-snan-2.c (main): Likewise.
+
2023-10-14 Bruno Haible <bruno@clisp.org>
snan: Avoid test failures with CC="gcc -mfpmath=387".
The use of 'volatile' prevents the compiler from doing constant-folding
optimizations on these values. An alternative, for GCC only, would be
the command-line option '-fsignaling-nans'. */
- float volatile nanf = SNaNf ();
- double volatile nand = SNaNd ();
- long double volatile nanl = SNaNl ();
+ _GL_UNUSED float volatile nanf = SNaNf ();
+ _GL_UNUSED double volatile nand = SNaNd ();
+ _GL_UNUSED long double volatile nanl = SNaNl ();
/* Check that the values are really signalling. */
/* These tests do not work on 32-bit x86 processors, as well as
The use of 'volatile' prevents the compiler from doing constant-folding
optimizations on these values. An alternative, for GCC only, would be
the command-line option '-fsignaling-nans'. */
- float volatile nanf = SNaNf ();
- double volatile nand = SNaNd ();
- long double volatile nanl = SNaNl ();
+ _GL_UNUSED float volatile nanf = SNaNf ();
+ _GL_UNUSED double volatile nand = SNaNd ();
+ _GL_UNUSED long double volatile nanl = SNaNl ();
/* Check that the values are really signalling. */