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

Modified warning suppression to work with gcc13 too

parent 6446d7d2
No related branches found
No related tags found
2 merge requests!3788Draft: Update SciFi cluster monitoring,!3626Fixes for gcc 13, clang 16 and C++20
Pipeline #6365319 passed
......@@ -935,13 +935,13 @@ namespace LHCb::Pr::Velo {
LHCb::make_object_array<HitsPlane, num_P>( Zipping::generateZipIdentifier(), LHCb::getMemResource( evtCtx ) );
std::array<HitsPlane*, num_P> P{nullptr};
for ( std::size_t i = 0; i < num_P; i++ ) {
#if defined( __GNUC__ ) && __GNUC__ < 13
#if defined( __GNUC__ ) && __GNUC__ < 14
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Warray-bounds"
#endif
raw_P[i].reserve( reserved_hits_inPlane );
P[i] = &raw_P[i];
#if defined( __GNUC__ ) && __GNUC__ < 13
#if defined( __GNUC__ ) && __GNUC__ < 14
# pragma GCC diagnostic pop
#endif
}
......@@ -960,13 +960,13 @@ namespace LHCb::Pr::Velo {
LHCb::getMemResource( evtCtx ) );
std::array<HitsPlane*, num_P> P2{nullptr};
for ( std::size_t i = 0; i < num_P; i++ ) {
#if defined( __GNUC__ ) && __GNUC__ < 13
#if defined( __GNUC__ ) && __GNUC__ < 14
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Warray-bounds"
#endif
raw_P2[i].reserve( reserved_hits_inPlane );
P2[i] = &raw_P2[i];
#if defined( __GNUC__ ) && __GNUC__ < 13
#if defined( __GNUC__ ) && __GNUC__ < 14
# pragma GCC diagnostic pop
#endif
}
......
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