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

Lots of compiler warnings from afw SpatialCell.h

    Details

    • Type: Bug
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: afw
    • Labels:
      None
    • Templates:
    • Team:
      Data Release Production

      Description

      When building ip_diffim there are a lot of warnings coming from afw SpatialCell.h:

      [2019-11-08T17:45:55.029783Z] In file included from src/KernelPca.cc:12:
      [2019-11-08T17:45:55.030078Z] In file included from /Users/timj/work/lsstsw3/stack/DarwinX86/afw/18.1.0-28-ge996dbe42/include/lsst/afw/math.h:40:
      [2019-11-08T17:45:55.030235Z] /Users/timj/work/lsstsw3/stack/DarwinX86/afw/18.1.0-28-ge996dbe42/include/lsst/afw/math/SpatialCell.h:81:27: warning: explicitly defaulted copy assignment operator is implicitly deleted [-Wdefaulted-function-deleted]
      [2019-11-08T17:45:55.031194Z]     SpatialCellCandidate& operator=(SpatialCellCandidate const&) = default;
      [2019-11-08T17:45:55.031214Z]                           ^
      [2019-11-08T17:45:55.031231Z] /Users/timj/work/lsstsw3/stack/DarwinX86/afw/18.1.0-28-ge996dbe42/include/lsst/afw/math/SpatialCell.h:115:17: note: copy assignment operator of 'SpatialCellCandidate' is implicitly deleted because field '_xCenter' is of const-qualified type 'const float'
      [2019-11-08T17:45:55.031254Z]     float const _xCenter;  // The object's column-centre
      [2019-11-08T17:45:55.031261Z]                 ^
      [2019-11-08T17:45:55.031268Z] /Users/timj/work/lsstsw3/stack/DarwinX86/afw/18.1.0-28-ge996dbe42/include/lsst/afw/math/SpatialCell.h:82:27: warning: explicitly defaulted move assignment operator is implicitly deleted [-Wdefaulted-function-deleted]
      [2019-11-08T17:45:55.031297Z]     SpatialCellCandidate& operator=(SpatialCellCandidate&&) = default;
      [2019-11-08T17:45:55.031304Z]                           ^
      [2019-11-08T17:45:55.031314Z] /Users/timj/work/lsstsw3/stack/DarwinX86/afw/18.1.0-28-ge996dbe42/include/lsst/afw/math/SpatialCell.h:115:17: note: move assignment operator of 'SpatialCellCandidate' is implicitly deleted because field '_xCenter' is of const-qualified type 'const float'
      [2019-11-08T17:45:55.031404Z]     float const _xCenter;  // The object's column-centre
      [2019-11-08T17:45:55.031414Z]                 ^
      [2019-11-08T17:45:55.032321Z] /Users/timj/work/lsstsw3/stack/DarwinX86/afw/18.1.0-28-ge996dbe42/include/lsst/afw/math/SpatialCell.h:135:32: warning: explicitly defaulted copy assignment operator is implicitly deleted [-Wdefaulted-function-deleted]
      [2019-11-08T17:45:55.032361Z]     SpatialCellImageCandidate& operator=(SpatialCellImageCandidate const&) = default;
      [2019-11-08T17:45:55.032371Z]                                ^
      [2019-11-08T17:45:55.032491Z] /Users/timj/work/lsstsw3/stack/DarwinX86/afw/18.1.0-28-ge996dbe42/include/lsst/afw/math/SpatialCell.h:126:35: note: copy assignment operator of 'SpatialCellImageCandidate' is implicitly deleted because base class 'lsst::afw::math::SpatialCellCandidate' has a deleted copy assignment operator
      [2019-11-08T17:45:55.032573Z] class SpatialCellImageCandidate : public SpatialCellCandidate {
      [2019-11-08T17:45:55.032599Z]                                   ^
      [2019-11-08T17:45:55.033652Z] /Users/timj/work/lsstsw3/stack/DarwinX86/afw/18.1.0-28-ge996dbe42/include/lsst/afw/math/SpatialCell.h:81:27: note: explicitly defaulted function was implicitly deleted here
      [2019-11-08T17:45:55.033693Z]     SpatialCellCandidate& operator=(SpatialCellCandidate const&) = default;
      [2019-11-08T17:45:55.033704Z]                           ^
      [2019-11-08T17:45:55.033717Z] /Users/timj/work/lsstsw3/stack/DarwinX86/afw/18.1.0-28-ge996dbe42/include/lsst/afw/math/SpatialCell.h:115:17: note: copy assignment operator of 'SpatialCellCandidate' is implicitly deleted because field '_xCenter' is of const-qualified type 'const float'
      [2019-11-08T17:45:55.033758Z]     float const _xCenter;  // The object's column-centre
      [2019-11-08T17:45:55.033775Z]                 ^
      [2019-11-08T17:45:55.033789Z] /Users/timj/work/lsstsw3/stack/DarwinX86/afw/18.1.0-28-ge996dbe42/include/lsst/afw/math/SpatialCell.h:136:32: warning: explicitly defaulted move assignment operator is implicitly deleted [-Wdefaulted-function-deleted]
      [2019-11-08T17:45:55.033828Z]     SpatialCellImageCandidate& operator=(SpatialCellImageCandidate&&) = default;
      [2019-11-08T17:45:55.033837Z]                                ^
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tjenness Tim Jenness
                Watchers:
                Jim Bosch, Tim Jenness
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel