public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Remove unused variable 'one' from sf_cos.c
@ 2018-08-29 14:01 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2018-08-29 14:01 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=088a45cdf6a01059b5c4a7565e83c2bca83c8da5

commit 088a45cdf6a01059b5c4a7565e83c2bca83c8da5
Author: Keith Packard <keithp@keithp.com>
Date:   Mon Aug 27 11:32:29 2018 -0700

    Remove unused variable 'one' from sf_cos.c
    
    Defined, never mentioned.
    
    Signed-off-by: Keith Packard <keithp@keithp.com>

Diff:
---
 newlib/libm/math/sf_cos.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/newlib/libm/math/sf_cos.c b/newlib/libm/math/sf_cos.c
index 8cb0eb0..fa472b1 100644
--- a/newlib/libm/math/sf_cos.c
+++ b/newlib/libm/math/sf_cos.c
@@ -17,12 +17,6 @@
 #if __OBSOLETE_MATH
 
 #ifdef __STDC__
-static const float one=1.0;
-#else
-static float one=1.0;
-#endif
-
-#ifdef __STDC__
 	float cosf(float x)
 #else
 	float cosf(x)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-29 14:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-29 14:01 [newlib-cygwin] Remove unused variable 'one' from sf_cos.c Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).