aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN.N. <matju@users.sourceforge.net>2009-05-17 00:59:33 +0000
committerN.N. <matju@users.sourceforge.net>2009-05-17 00:59:33 +0000
commitd2dcbdfe87ee6f0625ab5a2e9a6a3f7f8b0ac3ca (patch)
tree3b101a6aec4eb18e1203246ed8fb3f1127bc0fa9
parent263ac28486b4e6f9b3aaf8b8a0811bb91cb2a122 (diff)
remove warnings
svn path=/trunk/; revision=11411
-rw-r--r--desiredata/src/d_fftroutine.c2
-rw-r--r--desiredata/src/d_mayer_fft.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/desiredata/src/d_fftroutine.c b/desiredata/src/d_fftroutine.c
index 4a44ee61..172bec2d 100644
--- a/desiredata/src/d_fftroutine.c
+++ b/desiredata/src/d_fftroutine.c
@@ -308,7 +308,7 @@ void build_fft_network(FFT_NET *fft_net, int n, int window_type)
/* network definition */
fft_net->n = n;
fft_net->bps = bps = n/2;
- for (i = 0, j = n; j > 1; j >>= 1, i++);
+ for (i = 0, j = n; j > 1; j >>= 1, i++) {}
fft_net->stages = stages = i;
fft_net->direction = FORWARD;
fft_net->window_type = window_type;
diff --git a/desiredata/src/d_mayer_fft.c b/desiredata/src/d_mayer_fft.c
index 74ee1c76..563f02ba 100644
--- a/desiredata/src/d_mayer_fft.c
+++ b/desiredata/src/d_mayer_fft.c
@@ -228,13 +228,13 @@ REAL c1,s1,s2,c2,s3,c3,s4,c4;
for (k1=1,k2=0;k1<n;k1++)
{
REAL aa;
- for (k=n>>1; (!((k2^=k)&k)); k>>=1);
+ for (k=n>>1; (!((k2^=k)&k)); k>>=1) {}
if (k1>k2)
{
aa=fz[k1];fz[k1]=fz[k2];fz[k2]=aa;
}
}
- for ( k=0 ; (1<<k)<n ; k++ );
+ for ( k=0 ; (1<<k)<n ; k++ ) {}
k &= 1;
if (k==0)
{