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

Merge branch 'sponce-el9Warnings' into 'master'

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

See merge request !4063
parents e2f4eb5f c9032e34
No related tags found
1 merge request!4063hide clang 12 / gcc 10 warnings (false positive?) properly
Pipeline #5415673 passed
......@@ -119,12 +119,13 @@ 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?)
// hide clang 12 / gcc 10 warnings (false positive?)
# pragma GCC diagnostic ignored "-Wuninitialized"
# 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