ldexpf.c has this piece of code:

/* Avoid some warnings from "gcc -Wshadow".
   This file doesn't use the exp() function.  */
#undef exp
#define exp exponent

ldexpl.c needs it as well.


2023-08-19  Bruno Haible  <[email protected]>

        ldexpl: Avoid possible -Wshadow warning.
        * lib/ldexpl.c (exp): Locally rename to 'exponent'.

diff --git a/lib/ldexpl.c b/lib/ldexpl.c
index 255917eb30..93a31cc033 100644
--- a/lib/ldexpl.c
+++ b/lib/ldexpl.c
@@ -23,6 +23,11 @@
 /* Specification.  */
 #include <math.h>
 
+/* Avoid some warnings from "gcc -Wshadow".
+   This file doesn't use the exp() function.  */
+#undef exp
+#define exp exponent
+
 #if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
 
 long double




Reply via email to