Skip to content
Snippets Groups Projects
Commit 10e1d64e authored by Sebastien Ponce's avatar Sebastien Ponce
Browse files

hide clang 12 / gcc 10 warnings (false positive?) properly

Previous version was not targeting the right warning neither the right lines of code
parent 485cb0e7
No related branches found
No related tags found
1 merge request!4063hide clang 12 / gcc 10 warnings (false positive?) properly
Pipeline #5389661 passed
......@@ -119,12 +119,12 @@ namespace LHCb {
Particle_t const& operator[]( size_t i ) const {
assert( i < m_children.size() );
assert( m_children[i] != nullptr );
#pragma GCC diagnostic push
#ifndef __clang__
// hide gcc 12 warning (false positive?)
# pragma GCC diagnostic ignored "-Wuninitialized"
// hide clang 12 / gcc 10 warnings (false positive?)
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
assert( m_children[i] != nullptr );
return *m_children[i];
#pragma GCC diagnostic pop
}
......
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