Commit ab1fab18 authored by Michaël Roynard's avatar Michaël Roynard
Browse files

Fix unused variable warning

parent 38f38bc9
......@@ -31,7 +31,7 @@ void Sum_New(const mln::image2d<mln::uint8>& input, mln::image2d<mln::uint8>& ou
{
auto pixels = mln::ranges::view::zip(input.new_pixels(), output.new_pixels());
for (auto rows : pixels.rows())
for (auto&& [pxIn, pxOut] : rows)
for ([[maybe_unused]] auto&& [pxIn, pxOut] : rows)
{
int tmp = 0;
// FIXME: gcc8 ICE
......
......@@ -23,10 +23,10 @@ TEST(Core, Clamp_LargeEnough_BM_Auto)
iota(ima, 0);
[[maybe_unused]] image2d<uint8> out = clone(ima);
[[maybe_unused]] auto disc = mln::se::disc{1};
auto [managed_ima, managed_se] = extension::bm::clamp().manage(ima, disc);
// TODO: implement clamp in ndimage
/*
auto [managed_ima, managed_se] = extension::bm::clamp().manage(ima, disc);
ASSERT_TRUE(
std::visit([](auto i, auto) { return mln::extension::is_finite(i.extension()); }, managed_ima, managed_se));
ASSERT_TRUE(std::visit(
......@@ -74,10 +74,10 @@ TEST(Core, Clamp_LargeEnough_BM_User)
iota(ima, 0);
[[maybe_unused]] image2d<uint8> out = clone(ima);
[[maybe_unused]] auto disc = mln::se::disc{1};
auto [managed_ima, managed_se] = extension::bm::native::clamp().manage(ima, disc);
// TODO: implement clamp in ndimage
/*
auto [managed_ima, managed_se] = extension::bm::native::clamp().manage(ima, disc);
ASSERT_TRUE(
std::visit([](auto i, auto) { return mln::extension::is_finite(i.extension()); }, managed_ima, managed_se));
ASSERT_TRUE(std::visit(
......
......@@ -22,13 +22,11 @@ TEST(Core, Periodize_LargeEnough_BM_Auto)
image2d<uint8> ima(10, 10);
iota(ima, 0);
[[maybe_unused]] image2d<uint8> out = clone(ima);
[[maybe_unused]] auto disc = mln::se::disc{1};
// TODO: implement periodize in ndimage
/*
auto [managed_ima, managed_se] = extension::bm::periodize().manage(ima, disc);
ASSERT_TRUE(
std::visit([](auto i, auto) { return mln::extension::is_finite(i.extension()); }, managed_ima, managed_se));
ASSERT_TRUE(std::visit(
......@@ -75,13 +73,11 @@ TEST(Core, Periodize_LargeEnough_BM_Native)
image2d<uint8> ima(10, 10);
iota(ima, 0);
[[maybe_unused]] image2d<uint8> out = clone(ima);
[[maybe_unused]] auto disc = mln::se::disc{1};
// TODO: implement periodize in ndimage
/*
auto [managed_ima, managed_se] = extension::bm::native::periodize().manage(ima, disc);
ASSERT_TRUE(std::visit([](auto i, auto) { rreturn mln::extension::is_finite(i.extension()); },
managed_ima, managed_se));
ASSERT_TRUE(std::visit(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment