Avoid some warnings from "gcc -Wshadow".
authorBruno Haible <bruno@clisp.org>
Sat, 17 May 2008 00:35:22 +0000 (02:35 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 17 May 2008 00:35:22 +0000 (02:35 +0200)
ChangeLog
lib/vasnprintf.c

index 581337f..7c0a840 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-16  Jim Meyering  <meyering@redhat.com>
+            Bruno Haible  <bruno@clisp.org>
+
+       Avoid some warnings from "gcc -Wshadow".
+       * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
+
 2008-05-15  Eric Blake  <ebb9@byu.net>
 
        Extend previous patch to cygwin 1.7.0.
index 517888c..66ce420 100644 (file)
@@ -200,6 +200,13 @@ local_wcslen (const wchar_t *s)
 /* Here we need to call the native sprintf, not rpl_sprintf.  */
 #undef sprintf
 
+/* Avoid some warnings from "gcc -Wshadow".
+   This file doesn't use the exp() and remainder() functions.  */
+#undef exp
+#define exp expo
+#undef remainder
+#define remainder rem
+
 #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL
 /* Determine the decimal-point character according to the current locale.  */
 # ifndef decimal_point_char_defined