Mercurial > hg > octave-nkf > gnulib-hg
changeset 9860:6c7dda791c34
Avoid some warnings from "gcc -Wshadow".
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Thu, 03 Apr 2008 00:15:24 +0200 |
parents | a5fa8d721746 |
children | fda9bc12e47f |
files | ChangeLog tests/test-frexp.c tests/test-frexpl.c |
diffstat | 3 files changed, 15 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- a/tests/test-frexp.c +++ b/tests/test-frexp.c @@ -27,6 +27,10 @@ #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 \ { \
--- a/tests/test-frexpl.c +++ b/tests/test-frexpl.c @@ -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 @@ -27,6 +27,10 @@ #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 \ { \