From: Jim Meyering Date: Wed, 2 Apr 2008 22:15:24 +0000 (+0200) Subject: Avoid some warnings from "gcc -Wshadow". X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d08ac0def693e03e22d1848b34242547535713b2;p=pspp Avoid some warnings from "gcc -Wshadow". --- diff --git a/ChangeLog b/ChangeLog index 6f82cdc910..2f496fce92 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 9e92667cba..af9e8b1a16 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 f6e5af89da..b06a7b8715 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 \ { \