[2/4] Remove unused variable 'one' from sf_cos.c

Message ID 20180827183231.25728-3-keithp@keithp.com
State New
Headers show
Series
  • A selection of cleanups
Related show

Commit Message

Keith Packard Aug. 27, 2018, 6:32 p.m.
From: Keith Packard <keithp@keithp.com>


Defined, never mentioned.

Signed-off-by: Keith Packard <keithp@keithp.com>

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

-- 
2.18.0

Comments

Corinna Vinschen Aug. 29, 2018, 2:01 p.m. | #1
On Aug 27 11:32, keithp@keithp.com wrote:
> From: Keith Packard <keithp@keithp.com>

> 

> Defined, never mentioned.

> 

> Signed-off-by: Keith Packard <keithp@keithp.com>

> ---

>  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 8cb0eb008..fa472b173 100644

> --- a/newlib/libm/math/sf_cos.c

> +++ b/newlib/libm/math/sf_cos.c

> @@ -16,12 +16,6 @@

>  #include "fdlibm.h"

>  #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

> -- 

> 2.18.0


Pushed.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Patch

diff --git a/newlib/libm/math/sf_cos.c b/newlib/libm/math/sf_cos.c
index 8cb0eb008..fa472b173 100644
--- a/newlib/libm/math/sf_cos.c
+++ b/newlib/libm/math/sf_cos.c
@@ -16,12 +16,6 @@ 
 #include "fdlibm.h"
 #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