diff options
author | Keith Packard <keithp@keithp.com> | 2017-11-11 20:52:01 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-11-11 20:52:01 -0800 |
commit | 23cf8fb4d5745ad76d9517c9702d03d10c58144a (patch) | |
tree | 6d138e533f75466ebd8ee526cc40af5f65344d83 /src/math/kf_rem_pio2.c | |
parent | f3b279141cd30ad6a212ce75f5a7c2b8e3d33870 (diff) |
altos: Fix new GCC warnings
* Duplicate 'const' in test code.
* Mis-formatted loop in kf_rem_pio2
* Unused 'one' in sf_cos
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/math/kf_rem_pio2.c')
-rw-r--r-- | src/math/kf_rem_pio2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/math/kf_rem_pio2.c b/src/math/kf_rem_pio2.c index 261c4812..1573ca9f 100644 --- a/src/math/kf_rem_pio2.c +++ b/src/math/kf_rem_pio2.c @@ -77,7 +77,8 @@ twon8 = 3.9062500000e-03; /* 0x3b800000 */ /* compute q[0],q[1],...q[jk] */ for (i=0;i<=jk;i++) { - for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j]; q[i] = fw; + for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j]; + q[i] = fw; } jz = jk; |