From 178b7f29da0bd527b4a89b243ab1b1a9ee0e7f81 Mon Sep 17 00:00:00 2001 From: cbeall3 Date: Mon, 17 Mar 2014 21:56:50 -0400 Subject: [PATCH] clang warnings --- gtsam/linear/GaussianFactorGraph.h | 3 +++ gtsam_unstable/partition/GenericGraph.cpp | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gtsam/linear/GaussianFactorGraph.h b/gtsam/linear/GaussianFactorGraph.h index aea90da1a..50442ac6b 100644 --- a/gtsam/linear/GaussianFactorGraph.h +++ b/gtsam/linear/GaussianFactorGraph.h @@ -88,6 +88,9 @@ namespace gtsam { template GaussianFactorGraph(const FactorGraph& graph) : Base(graph) {} + /** Virtual destructor */ + virtual ~GaussianFactorGraph() {} + /// @name Testable /// @{ diff --git a/gtsam_unstable/partition/GenericGraph.cpp b/gtsam_unstable/partition/GenericGraph.cpp index aca916a04..a3db6a9c1 100644 --- a/gtsam_unstable/partition/GenericGraph.cpp +++ b/gtsam_unstable/partition/GenericGraph.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include @@ -468,9 +469,9 @@ namespace gtsam { namespace partition { } if (minFoundConstraintsPerCamera < minNrConstraintsPerCamera) - throw runtime_error("checkSingularity:minConstraintsPerCamera < " + minFoundConstraintsPerCamera); + throw runtime_error("checkSingularity:minConstraintsPerCamera < " + boost::lexical_cast(minFoundConstraintsPerCamera)); if (minFoundConstraintsPerLandmark < minNrConstraintsPerLandmark) - throw runtime_error("checkSingularity:minConstraintsPerLandmark < " + minFoundConstraintsPerLandmark); + throw runtime_error("checkSingularity:minConstraintsPerLandmark < " + boost::lexical_cast(minFoundConstraintsPerLandmark)); } }} // namespace