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

Compiler warnings in meas_algorithms

    Details

    • Templates:

      Description

      When I build meas_algorithms on my Mac I get a number of compiler warnings, some of which look potentially serious:

      include/lsst/meas/algorithms/PsfCandidate.h:130:46: warning: instantiation of variable 'lsst::meas::algorithms::PsfCandidate<float>::_border' required here, but no definition is available
            [-Wundefined-var-template]
              static int getBorderWidth() { return _border; }
                                                   ^
      src/SpatialModelPsf.cc:792:66: note: in instantiation of member function 'lsst::meas::algorithms::PsfCandidate<float>::getBorderWidth' requested here
                                                 PsfCandidate<PixelT>::getBorderWidth());
                                                                       ^
      src/SpatialModelPsf.cc:940:27: note: in instantiation of member function 'lsst::meas::algorithms::(anonymous namespace)::FillABVisitor<float>::FillABVisitor' requested here
          FillABVisitor<PixelT> getAB(*lcKernel, tau);
                                ^
      include/lsst/meas/algorithms/PsfCandidate.h:168:20: note: forward declaration of template entity is here
              static int _border;                         // width of border of ignored pixels around _image
                         ^
      include/lsst/meas/algorithms/PsfCandidate.h:130:46: note: add an explicit instantiation declaration to suppress this warning if 'lsst::meas::algorithms::PsfCandidate<float>::_border' is
            explicitly instantiated in another translation unit
              static int getBorderWidth() { return _border; }
                                                   ^
      src/SpatialModelPsf.cc:220:49: warning: unused typedef 'ExposureT' [-Wunused-local-typedef]
          typedef typename afwImage::Exposure<PixelT> ExposureT;
                                                      ^
      src/SpatialModelPsf.cc:628:46: warning: unused typedef 'Image' [-Wunused-local-typedef]
          typedef typename afwImage::Image<PixelT> Image;
                                                   ^
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rowen Russell Owen
              Watchers:
              Jim Bosch, John Parejko, Russell Owen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel