From patchwork Tue Jan 26 11:02:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 10630 Received: (qmail 99538 invoked by alias); 26 Jan 2016 11:02:26 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 99528 invoked by uid 89); 26 Jan 2016 11:02:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=21, 6 X-HELO: mx2.suse.de From: Andreas Schwab To: libc-alpha@sourceware.org Subject: [PATCH] Remove unused variables X-Yow: .. ich bin in einem dusenjet ins jahr 53 vor chr... ich lande im antiken Rom... einige gladiatoren spielen scrabble... ich rieche PIZZA... Date: Tue, 26 Jan 2016 12:02:21 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 These are flagged by -Wunused-const-variable. * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove. * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove. * sysdeps/powerpc/fpu/s_cosf.c (one): Remove. * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove. --- sysdeps/ieee754/ldbl-128ibm/s_erfl.c | 1 - sysdeps/ieee754/ldbl-128ibm/s_log1pl.c | 2 -- sysdeps/powerpc/fpu/e_hypotf.c | 2 -- sysdeps/powerpc/fpu/s_cosf.c | 1 - 4 files changed, 6 deletions(-) diff --git a/sysdeps/ieee754/ldbl-128ibm/s_erfl.c b/sysdeps/ieee754/ldbl-128ibm/s_erfl.c index 82d889d..7b761b0 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_erfl.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_erfl.c @@ -147,7 +147,6 @@ deval (long double x, const long double *p, int n) static const long double tiny = 1e-300L, - half = 0.5L, one = 1.0L, two = 2.0L, /* 2/sqrt(pi) - 1 */ diff --git a/sysdeps/ieee754/ldbl-128ibm/s_log1pl.c b/sysdeps/ieee754/ldbl-128ibm/s_log1pl.c index ad9a1fe..743693b 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_log1pl.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_log1pl.c @@ -117,8 +117,6 @@ static const long double C2 = 1.428606820309417232121458176568075500134E-6L; static const long double sqrth = 0.7071067811865475244008443621048490392848L; /* ln (2^16384 * (1 - 2^-113)) */ -static const long double maxlog = 1.1356523406294143949491931077970764891253E4L; -static const long double big = 2e300L; static const long double zero = 0.0L; diff --git a/sysdeps/powerpc/fpu/e_hypotf.c b/sysdeps/powerpc/fpu/e_hypotf.c index c27df25..4836082 100644 --- a/sysdeps/powerpc/fpu/e_hypotf.c +++ b/sysdeps/powerpc/fpu/e_hypotf.c @@ -21,8 +21,6 @@ #include #include -static const float two30 = 1.0737418e09; - /* __ieee754_hypotf(x,y) This a FP only version without any FP->INT conversion. diff --git a/sysdeps/powerpc/fpu/s_cosf.c b/sysdeps/powerpc/fpu/s_cosf.c index 2d1ec1b..eaeaebc 100644 --- a/sysdeps/powerpc/fpu/s_cosf.c +++ b/sysdeps/powerpc/fpu/s_cosf.c @@ -21,7 +21,6 @@ #include #include -static const float one = 1.0; static const float pio4 = 7.8539801e-1; float