Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • R Rec
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 289
    • Issues 289
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Jira
    • Jira
  • Merge requests 61
    • Merge requests 61
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • LHCbLHCb
  • Rec
  • Merge requests
  • !719

ChargedProtoANNPID - GCC7 Warning Suppression + Merge yPID libs into one

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Christopher Rob Jones requested to merge ChargedANNPID-GCC7WarnSupp-yPIDCleanUp into master Aug 21, 2017
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 3
  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 Aug 21, 2017 by Christopher Rob Jones
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: ChargedANNPID-GCC7WarnSupp-yPIDCleanUp