with Cppcheck 2.17 (and earlier) I get a false-positive FilterTest.cpp:65:18: style: Variable 'window_size' is assigned a value that is never used. [unreadVariable]
TEST(FilterTest, MedianTest) { const size_t window_size = 3; // Odd number Filter::Median<double, window_size> median; // rest of test }
Median definition is
template <typename T, std::size_t WindowSize> requires(WindowSize % 2 != 0) class Median : public IFilter<T>
Covered by https://trac.cppcheck.net/ticket/10233
Log in to post a comment.
with Cppcheck 2.17 (and earlier) I get a false-positive
FilterTest.cpp:65:18: style: Variable 'window_size' is assigned a value that is never used. [unreadVariable]
Median definition is
Covered by https://trac.cppcheck.net/ticket/10233