Skip to content

Commit

Permalink
Add comment about clang warning in ConstrainedPolyModel
Browse files Browse the repository at this point in the history
  • Loading branch information
parejkoj committed Jun 7, 2017
1 parent ccef713 commit a19544f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ConstrainedPolyModel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ std::shared_ptr<TanSipPix2RaDec> ConstrainedPolyModel::produceSipWcs(const CcdIm

GtransfoPoly pix2Tp;
const GtransfoPoly &t1 = dynamic_cast<const GtransfoPoly &>(mapping->getTransfo1());
// TODO: This line produces a warning on clang (t1 is always valid: a failed dynamic_cast of a reference
// raises bad_cast instead of returning nullptr like a failed pointer cast), but I'll deal with it as
// part of DM-10524 (hopefully removing the necessity of the casts).
if (!(&t1)) {
LOGLS_ERROR(_log, "Problem with transform 1 of ccd/visit " << ccdImage.getCcdId() << "/"
<< ccdImage.getVisit() << ": T1 "
Expand Down

0 comments on commit a19544f

Please sign in to comment.