]> Savannah Git Hosting - gnulib.git/commitdiff
ldexpl: Avoid possible -Wshadow warning.
authorBruno Haible <bruno@clisp.org>
Sat, 19 Aug 2023 23:44:26 +0000 (01:44 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 30 Aug 2023 09:53:04 +0000 (11:53 +0200)
* lib/ldexpl.c (exp): Locally rename to 'exponent'.

ChangeLog
lib/ldexpl.c

index 53613fca40fcda55f307e58e4192c557d94c3d29..2d510ea0ddc1352ceca4c4dfdf5350ef04a77744 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2023-08-19  Bruno Haible  <bruno@clisp.org>
 
+       ldexpl: Avoid possible -Wshadow warning.
+       * lib/ldexpl.c (exp): Locally rename to 'exponent'.
+
        ldexpl: Fix signed integer overflow.
        * lib/ldexpl.c (ldexpl): Use an 'unsigned int' variable to represent the
        absolute value of exp without overflow.
index 51aed6f6d44ac508bb81cb6e12ced2e6f8880c4c..0cd7673d0b2984bc81c030515fdfb48855b8559d 100644 (file)
 /* 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