From d08ac0def693e03e22d1848b34242547535713b2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 3 Apr 2008 00:15:24 +0200 Subject: [PATCH] Avoid some warnings from "gcc -Wshadow". --- ChangeLog | 6 ++++++ tests/test-frexp.c | 4 ++++ tests/test-frexpl.c | 6 +++++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6f82cdc91..2f496fce9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-04-02 Jim Meyering + + 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 bootstrap: remove dangling *.[ch] symlinks from lib diff --git a/tests/test-frexp.c b/tests/test-frexp.c index 9e92667cb..af9e8b1a1 100644 --- 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 \ { \ diff --git a/tests/test-frexpl.c b/tests/test-frexpl.c index f6e5af89d..b06a7b871 100644 --- 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 \ { \ -- 2.11.0