Avoid some warnings from "gcc -Wshadow".
authorJim Meyering <meyering@redhat.com>
Wed, 2 Apr 2008 22:15:24 +0000 (00:15 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 2 Apr 2008 22:17:41 +0000 (00:17 +0200)
ChangeLog
tests/test-frexp.c
tests/test-frexpl.c

index 6f82cdc..2f496fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-04-02  Jim Meyering  <meyering@redhat.com>
+
+       Avoid some warnings from "gcc -Wshadow".
+       * tests/test-frexp.c (exp): Define to a different identifier.
+       * tests/test-frexpl.c (exp): Likewise.
+
 2008-04-03  Jim Meyering  <meyering@redhat.com>
 
        bootstrap: remove dangling *.[ch] symlinks from lib
index 9e92667..af9e8b1 100644 (file)
 #include "isnand.h"
 #include "nan.h"
 
+/* Avoid some warnings from "gcc -Wshadow".
+   This file doesn't use the exp() function.  */
+#define exp exponent
+
 #define ASSERT(expr) \
   do                                                                        \
     {                                                                       \
index f6e5af8..b06a7b8 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of splitting a 'long double' into fraction and mantissa.
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 #include "fpucw.h"
 #include "isnanl-nolibm.h"
 
+/* Avoid some warnings from "gcc -Wshadow".
+   This file doesn't use the exp() function.  */
+#define exp exponent
+
 #define ASSERT(expr) \
   do                                                                        \
     {                                                                       \