diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-13 18:47:42 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-13 18:47:42 +0000 |
commit | f7808c1fe5578e0d789fe7d9181e3502482507b8 (patch) | |
tree | f1cf93ff36c5a59e676b1fb9fee3e3c25162e497 /apps/plugins/pdbox/PDa/extra/hlshelf.c | |
parent | 6484b45d711661c97c5d349065903c40f11ca579 (diff) | |
download | rockbox-f7808c1fe5578e0d789fe7d9181e3502482507b8.tar.gz rockbox-f7808c1fe5578e0d789fe7d9181e3502482507b8.zip |
Fix several 'variable set but not used' warnings reported by GCC 6.4.1.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29871 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox/PDa/extra/hlshelf.c')
-rw-r--r-- | apps/plugins/pdbox/PDa/extra/hlshelf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/plugins/pdbox/PDa/extra/hlshelf.c b/apps/plugins/pdbox/PDa/extra/hlshelf.c index 8a5f82bedd..fd769921d0 100644 --- a/apps/plugins/pdbox/PDa/extra/hlshelf.c +++ b/apps/plugins/pdbox/PDa/extra/hlshelf.c | |||
@@ -110,7 +110,8 @@ void hlshelf_check(t_hlshelf *x) | |||
110 | void hlshelf_bang(t_hlshelf *x) | 110 | void hlshelf_bang(t_hlshelf *x) |
111 | { | 111 | { |
112 | t_atom at[6]; | 112 | t_atom at[6]; |
113 | float c0, c1, c2, d0, d1, d2; /* output coefs */ | 113 | /* float c0; unused */ |
114 | float c1, c2, d0, d1, d2; /* output coefs */ | ||
114 | float a1, a2, b1, b2, g1, g2; /* temp coefs */ | 115 | float a1, a2, b1, b2, g1, g2; /* temp coefs */ |
115 | double xf; | 116 | double xf; |
116 | 117 | ||
@@ -157,7 +158,7 @@ void hlshelf_bang(t_hlshelf *x) | |||
157 | } | 158 | } |
158 | 159 | ||
159 | /* form product */ | 160 | /* form product */ |
160 | c0 = g1 * g2 * (float)(exp((double)(x->s_gain1) * 0.05f * 2.302585093f)); ; | 161 | /* c0 = g1 * g2 * (float)(exp((double)(x->s_gain1) * 0.05f * 2.302585093f)); unused */ |
161 | c1 = a1 + a2; | 162 | c1 = a1 + a2; |
162 | c2 = a1 * a2; | 163 | c2 = a1 * a2; |
163 | d0 = 1.0f; | 164 | d0 = 1.0f; |
@@ -166,7 +167,7 @@ void hlshelf_bang(t_hlshelf *x) | |||
166 | 167 | ||
167 | if (!hlshelf_check_stability(-c1/d0,-c2/d0,d0/d0,d1/d0,d2/d0)) { | 168 | if (!hlshelf_check_stability(-c1/d0,-c2/d0,d0/d0,d1/d0,d2/d0)) { |
168 | post("hlshelf: filter unstable -> resetting"); | 169 | post("hlshelf: filter unstable -> resetting"); |
169 | c0=1.;c1=0.;c2=0.; | 170 | /* c0=1.; unused */ c1=0.;c2=0.; |
170 | d0=1.;d1=0.;d2=0.; | 171 | d0=1.;d1=0.;d2=0.; |
171 | } | 172 | } |
172 | 173 | ||