Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Dec 2021 21:51:09 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 20d425842a4f - main - Remove set-but-unused variable from s_sincosl.c
Message-ID:  <202112142151.1BELp9dD005588@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=20d425842a4f80f9efc1de3f7a3b043435fe4b39

commit 20d425842a4f80f9efc1de3f7a3b043435fe4b39
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2021-12-14 21:41:49 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2021-12-14 21:50:30 +0000

    Remove set-but-unused variable from s_sincosl.c
    
    This look like a copy and paste leftover.
    
    Reported by:    enh@google.com (via freebsd-numerics@)
    Reviewed by:    Steve Kargl <sgk@troutmask.apl.washington.edu>
    MFC after:      3 days
---
 lib/msun/src/s_sincosl.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/msun/src/s_sincosl.c b/lib/msun/src/s_sincosl.c
index aef36c2320b1..3dd34575f894 100644
--- a/lib/msun/src/s_sincosl.c
+++ b/lib/msun/src/s_sincosl.c
@@ -50,11 +50,10 @@ void
 sincosl(long double x, long double *sn, long double *cs)
 {
 	union IEEEl2bits z;
-	int e0, sgn;
+	int e0;
 	long double y[2];
 
 	z.e = x;
-	sgn = z.bits.sign;
 	z.bits.sign = 0;
 
 	ENTERV();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112142151.1BELp9dD005588>