Skip to content

ChargedProtoANNPID - GCC7 Warning Suppression + Merge yPID libs into one

  1. Suppresses a warning with gcc7
/usera/jonesc/LHCbCMake/Master/Rec/Rec/ChargedProtoANNPID/src/ChargedProtoANNPIDCommonBase.icpp:457:40: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
           while ( std::getline(cuts,cut) )

Looks like a gcc7 bug fixed in a later gcc release than 7.1 (likely 7.3).

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80593

This bug more directly relates to the case here, but is marked as a duplicate of the one above.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80827

Workaround is to turn off the warning with -Wno-strict-aliasing.

  1. Merge the yPID libs into one. No need for 3...
Edited by Christopher Rob Jones

Merge request reports