Fix compiler warnings in tests

This commit is contained in:
Chris Cannam
2022-06-30 11:49:18 +01:00
parent d2126c8a2e
commit 829fdfd2f9

View File

@@ -226,7 +226,6 @@ BOOST_AUTO_TEST_CASE(sinusoid_2x_offline_finer)
BOOST_AUTO_TEST_CASE(impulses_2x_offline_faster) BOOST_AUTO_TEST_CASE(impulses_2x_offline_faster)
{ {
int n = 10000; int n = 10000;
float freq = 440.f;
int rate = 44100; int rate = 44100;
RubberBandStretcher stretcher RubberBandStretcher stretcher
(rate, 1, RubberBandStretcher::OptionEngineFaster); (rate, 1, RubberBandStretcher::OptionEngineFaster);
@@ -262,7 +261,7 @@ BOOST_AUTO_TEST_CASE(impulses_2x_offline_faster)
BOOST_TEST(got == n * 2); BOOST_TEST(got == n * 2);
BOOST_TEST(stretcher.available() == -1); BOOST_TEST(stretcher.available() == -1);
int peak0, peak1, peak2; int peak0 = -1, peak1 = -1, peak2 = -1;
float max; float max;
max = -2.f; max = -2.f;
@@ -296,7 +295,6 @@ BOOST_AUTO_TEST_CASE(impulses_2x_offline_faster)
BOOST_AUTO_TEST_CASE(impulses_2x_offline_finer) BOOST_AUTO_TEST_CASE(impulses_2x_offline_finer)
{ {
int n = 10000; int n = 10000;
float freq = 440.f;
int rate = 44100; int rate = 44100;
RubberBandStretcher stretcher RubberBandStretcher stretcher
(rate, 1, RubberBandStretcher::OptionEngineFiner); (rate, 1, RubberBandStretcher::OptionEngineFiner);
@@ -332,7 +330,7 @@ BOOST_AUTO_TEST_CASE(impulses_2x_offline_finer)
BOOST_TEST(got == n * 2); BOOST_TEST(got == n * 2);
BOOST_TEST(stretcher.available() == -1); BOOST_TEST(stretcher.available() == -1);
int peak0, peak1, peak2; int peak0 = -1, peak1 = -1, peak2 = -1;
float max; float max;
max = -2.f; max = -2.f;
@@ -366,7 +364,6 @@ BOOST_AUTO_TEST_CASE(impulses_2x_offline_finer)
BOOST_AUTO_TEST_CASE(impulses_2x_5up_offline_finer) BOOST_AUTO_TEST_CASE(impulses_2x_5up_offline_finer)
{ {
int n = 10000; int n = 10000;
float freq = 440.f;
int rate = 44100; int rate = 44100;
RubberBandStretcher stretcher RubberBandStretcher stretcher
(rate, 1, RubberBandStretcher::OptionEngineFiner); (rate, 1, RubberBandStretcher::OptionEngineFiner);
@@ -403,7 +400,7 @@ BOOST_AUTO_TEST_CASE(impulses_2x_5up_offline_finer)
BOOST_TEST(got == n * 2); BOOST_TEST(got == n * 2);
BOOST_TEST(stretcher.available() == -1); BOOST_TEST(stretcher.available() == -1);
int peak0, peak1, peak2; int peak0 = -1, peak1 = -1, peak2 = -1;
float max; float max;
max = -2.f; max = -2.f;