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 ...@@ -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()); auto pixels = mln::ranges::view::zip(input.new_pixels(), output.new_pixels());
for (auto rows : pixels.rows()) for (auto rows : pixels.rows())
for (auto&& [pxIn, pxOut] : rows) for ([[maybe_unused]] auto&& [pxIn, pxOut] : rows)
{ {
int tmp = 0; int tmp = 0;
// FIXME: gcc8 ICE // FIXME: gcc8 ICE
......
...@@ -23,10 +23,10 @@ TEST(Core, Clamp_LargeEnough_BM_Auto) ...@@ -23,10 +23,10 @@ TEST(Core, Clamp_LargeEnough_BM_Auto)
iota(ima, 0); iota(ima, 0);
[[maybe_unused]] image2d<uint8> out = clone(ima); [[maybe_unused]] image2d<uint8> out = clone(ima);
[[maybe_unused]] auto disc = mln::se::disc{1}; [[maybe_unused]] auto disc = mln::se::disc{1};
auto [managed_ima, managed_se] = extension::bm::clamp().manage(ima, disc);
// TODO: implement clamp in ndimage // TODO: implement clamp in ndimage
/* /*
auto [managed_ima, managed_se] = extension::bm::clamp().manage(ima, disc);
ASSERT_TRUE( ASSERT_TRUE(
std::visit([](auto i, auto) { return mln::extension::is_finite(i.extension()); }, managed_ima, managed_se)); std::visit([](auto i, auto) { return mln::extension::is_finite(i.extension()); }, managed_ima, managed_se));
ASSERT_TRUE(std::visit( ASSERT_TRUE(std::visit(
...@@ -74,10 +74,10 @@ TEST(Core, Clamp_LargeEnough_BM_User) ...@@ -74,10 +74,10 @@ TEST(Core, Clamp_LargeEnough_BM_User)
iota(ima, 0); iota(ima, 0);
[[maybe_unused]] image2d<uint8> out = clone(ima); [[maybe_unused]] image2d<uint8> out = clone(ima);
[[maybe_unused]] auto disc = mln::se::disc{1}; [[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 // TODO: implement clamp in ndimage
/* /*
auto [managed_ima, managed_se] = extension::bm::native::clamp().manage(ima, disc);
ASSERT_TRUE( ASSERT_TRUE(
std::visit([](auto i, auto) { return mln::extension::is_finite(i.extension()); }, managed_ima, managed_se)); std::visit([](auto i, auto) { return mln::extension::is_finite(i.extension()); }, managed_ima, managed_se));
ASSERT_TRUE(std::visit( ASSERT_TRUE(std::visit(
......
...@@ -21,14 +21,12 @@ TEST(Core, Periodize_LargeEnough_BM_Auto) ...@@ -21,14 +21,12 @@ TEST(Core, Periodize_LargeEnough_BM_Auto)
image2d<uint8> ima(10, 10); image2d<uint8> ima(10, 10);
iota(ima, 0); iota(ima, 0);
[[maybe_unused]] image2d<uint8> out = clone(ima); [[maybe_unused]] image2d<uint8> out = clone(ima);
[[maybe_unused]] auto disc = mln::se::disc{1};
[[maybe_unused]] auto disc = mln::se::disc{1};
// TODO: implement periodize in ndimage // TODO: implement periodize in ndimage
/* /*
auto [managed_ima, managed_se] = extension::bm::periodize().manage(ima, disc); auto [managed_ima, managed_se] = extension::bm::periodize().manage(ima, disc);
ASSERT_TRUE( ASSERT_TRUE(
std::visit([](auto i, auto) { return mln::extension::is_finite(i.extension()); }, managed_ima, managed_se)); std::visit([](auto i, auto) { return mln::extension::is_finite(i.extension()); }, managed_ima, managed_se));
ASSERT_TRUE(std::visit( ASSERT_TRUE(std::visit(
...@@ -74,14 +72,12 @@ TEST(Core, Periodize_LargeEnough_BM_Native) ...@@ -74,14 +72,12 @@ TEST(Core, Periodize_LargeEnough_BM_Native)
image2d<uint8> ima(10, 10); image2d<uint8> ima(10, 10);
iota(ima, 0); iota(ima, 0);
[[maybe_unused]] image2d<uint8> out = clone(ima); [[maybe_unused]] image2d<uint8> out = clone(ima);
[[maybe_unused]] auto disc = mln::se::disc{1};
[[maybe_unused]] auto disc = mln::se::disc{1};
// TODO: implement periodize in ndimage // TODO: implement periodize in ndimage
/* /*
auto [managed_ima, managed_se] = extension::bm::native::periodize().manage(ima, disc); 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()); }, ASSERT_TRUE(std::visit([](auto i, auto) { rreturn mln::extension::is_finite(i.extension()); },
managed_ima, managed_se)); managed_ima, managed_se));
ASSERT_TRUE(std::visit( 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