Commit 37d36240 authored by Edwin Carlinet's avatar Edwin Carlinet
Browse files

Fix uninitialized variable warning on gcc-9.2.

parent 7c86c7a1
......@@ -154,6 +154,7 @@ namespace mln::experimental::details
{
ndpix<T, N> pix;
pix.m_info = &m_info;
pix.m_lineptr = nullptr;
for (int i = 0; i < N; ++i)
pix.m_point[i] = this->m_info.m_axes[i].domain_begin;
return {{}, pix};
......@@ -163,6 +164,7 @@ namespace mln::experimental::details
{
ndpix<T, N> pix;
pix.m_info = &m_info;
pix.m_lineptr = nullptr;
for (int i = 0; i < N; ++i)
pix.m_point[i] = this->m_info.m_axes[i].domain_end - 1;
return {{}, pix};
......
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