Skip to content

Commit 404f2aa

Browse files
christophfroehlichmergify[bot]
authored andcommitted
Fix -Wuninitialized-const-reference (#485)
(cherry picked from commit 42d3050)
1 parent 6af900d commit 404f2aa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

control_toolbox/test/control_filters/test_exponential_filter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ TEST_F(FilterTest, TestExponentialFilterThrowsUnconfigured)
2323
{
2424
std::shared_ptr<filters::FilterBase<double>> filter_ =
2525
std::make_shared<control_filters::ExponentialFilter<double>>();
26-
double in, out;
26+
double in = 42., out;
2727
ASSERT_THROW(filter_->update(in, out), std::runtime_error);
2828
}
2929

control_toolbox/test/control_filters/test_low_pass_filter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ TEST_F(FilterTest, TestLowPassFilterThrowsUnconfigured)
7373
{
7474
std::shared_ptr<filters::FilterBase<double>> filter_ =
7575
std::make_shared<control_filters::LowPassFilter<double>>();
76-
double in, out;
76+
double in = 42., out;
7777
ASSERT_THROW(filter_->update(in, out), std::runtime_error);
7878
}
7979

control_toolbox/test/control_filters/test_rate_limiter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ TEST_F(FilterTest, TestRateLimiterThrowsUnconfigured)
7272
{
7373
std::shared_ptr<filters::FilterBase<double>> filter_ =
7474
std::make_shared<control_filters::RateLimiter<double>>();
75-
double in, out;
75+
double in = 42., out;
7676
ASSERT_THROW(filter_->update(in, out), std::runtime_error);
7777
}
7878

0 commit comments

Comments
 (0)