Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: afw
-
Labels:None
-
Team:External
Description
Sogo Mineo writes:
GCC 8.1 was released recently, and it told me the following mistake in AFW.
The mistake resides in the master branch, too.
diff -ur afw-6.2-hsc+1/src/detection/FootprintSet.cc afw-6.2-hsc+1.new/src/detection/FootprintSet.cc
--- afw-6.2-hsc+1/src/detection/FootprintSet.cc 2018-04-18 14:36:08.000000000 +0900
+++ afw-6.2-hsc+1.new/src/detection/FootprintSet.cc 2018-05-08 15:07:26.862308982 +0900
@@ -876,7 +876,7 @@
Startspan(geom::Span const *span, image::Mask<MaskPixelT> *mask, DIRECTION const dir);
~Startspan() { delete _span; }
- bool getSpan() { return _span; }
+ std::shared_ptr<geom::Span const> getSpan() { return _span; }
bool Stop() { return _stop; }
DIRECTION getDirection() { return _direction; }
Nate Lust, would you please approve this simple fix?
Jenkins is currently running.
price@pap-laptop:~/LSST/afw (tickets/DM-14353=) $ git sub-patch
commit 101f82680639518531b3433126a1356813dc6405 (HEAD -> tickets/DM-14353, origin/tickets/DM-14353)
Author: Paul Price <price@astro.princeton.edu>
Date: Tue May 8 10:03:46 2018 -0400
fix return type for Startspan::getSpan
Thanks to Sogo Mineo (NAOJ) who identified the bug through gcc 8.1 and
provided the fix.
diff --git a/src/detection/FootprintSet.cc b/src/detection/FootprintSet.cc
index 1f5be5d78..3dd1a99bd 100644
--- a/src/detection/FootprintSet.cc
+++ b/src/detection/FootprintSet.cc
@@ -876,7 +876,7 @@ public:
Startspan(geom::Span const *span, image::Mask<MaskPixelT> *mask, DIRECTION const dir);
~Startspan() { delete _span; }
- bool getSpan() { return _span; }
+ std::shared_ptr<geom::Span const> getSpan() const { return _span; }
bool Stop() { return _stop; }
DIRECTION getDirection() { return _direction; }