Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-10107

Clang warnings when building afw

    Details

    • Type: Story
    • Status: Invalid
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: afw

      Description

      When I build afw using clang on osx I see the following warnings:

      src/detection/PsfFormatter.cc:68:16: warning: expression with side effects will be evaluated despite being used as an operand to 'typeid' [-Wpotentially-evaluated-expression]
          if (typeid(*storage) == typeid(dafPersist::BoostStorage)) {
                     ^
      src/detection/PsfFormatter.cc:76:21: warning: expression with side effects will be evaluated despite being used as an operand to 'typeid' [-Wpotentially-evaluated-expression]
          else if (typeid(*storage) == typeid(dafPersist::XmlStorage)) {
                          ^
      src/detection/PsfFormatter.cc:91:16: warning: expression with side effects will be evaluated despite being used as an operand to 'typeid' [-Wpotentially-evaluated-expression]
          if (typeid(*storage) == typeid(dafPersist::BoostStorage)) {
                     ^
      src/detection/PsfFormatter.cc:99:21: warning: expression with side effects will be evaluated despite being used as an operand to 'typeid' [-Wpotentially-evaluated-expression]
          else if (typeid(*storage) == typeid(dafPersist::XmlStorage)) {
      

        Attachments

          Issue Links

            Activity

            Hide
            krzys Krzysztof Findeisen added a comment -

            Partial duplicate of DM-10257, issue fixed there.

            Show
            krzys Krzysztof Findeisen added a comment - Partial duplicate of DM-10257 , issue fixed there.

              People

              • Assignee:
                Unassigned
                Reporter:
                rowen Russell Owen
                Watchers:
                Krzysztof Findeisen, Russell Owen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel