Skip to content
Snippets Groups Projects
Commit 432b2972 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Hide (false?) maybe-uninitialized warning

parent fd2bdac3
No related branches found
No related tags found
1 merge request!1403Fix gcc12 warnings
......@@ -117,7 +117,15 @@ static std::unique_ptr<gp::PropertyValue> GetPropertyValue( const gp::Node* node
auto vvalue = GetPropertyValue( &child.children[1], catalog, units );
result.emplace( kvalue->ToString(), vvalue->ToString() );
}
#if __GNUC__ >= 12
# pragma GCC diagnostic push
// hide gcc 12 warning (false positive? see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107138)
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
value = std::make_unique<gp::PropertyValue>( std::move( result ) );
#if __GNUC__ >= 12
# pragma GCC diagnostic pop
#endif
break;
}
// ------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment