SmartRangeFactor warnings with gcc

Issue #164 new
Chris Beall created an issue
In file included from /home/cbeall3/git/gtsam/gtsam_unstable/slam/tests/testSmartRangeFactor.cpp:19:0:
/home/cbeall3/git/gtsam/gtsam_unstable/slam/SmartRangeFactor.h: In member function ‘gtsam::Point2 gtsam::SmartRangeFactor::triangulate(const gtsam::Values&) const’:
/home/cbeall3/git/gtsam/gtsam_unstable/slam/SmartRangeFactor.h:113:27: warning: ‘*((void*)(& best_fh)+8).gtsam::Point2::y_’ may be used uninitialized in this function [-Wmaybe-uninitialized]
       if (fh && (!best_fh || fh->y() > best_fh->y())) {
                           ^

Comments (0)

  1. Log in to comment