From 86c2edd50d846cdc85197b62258f40be7fe389bf Mon Sep 17 00:00:00 2001 From: Florent Lamiraux <florent@laas.fr> Date: Mon, 17 Jul 2023 17:13:04 +0200 Subject: [PATCH] [StatesPathFinder] Fix compilation warnings. --- src/path-planner/states-path-finder.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/path-planner/states-path-finder.cc b/src/path-planner/states-path-finder.cc index e2dd79fb..55e5f2bb 100644 --- a/src/path-planner/states-path-finder.cc +++ b/src/path-planner/states-path-finder.cc @@ -76,13 +76,11 @@ namespace hpp { using core::problemTarget::TaskTarget; using core::problemTarget::TaskTargetPtr_t; - static void displayRoadmap(const core::RoadmapPtr_t& #ifdef HPP_DEBUG + static void displayRoadmap(const core::RoadmapPtr_t& roadmap -#endif ) { -#ifdef HPP_DEBUG unsigned i=0; for (auto cc : roadmap->connectedComponents()){ hppDout(info, " CC " << i); ++i; @@ -90,8 +88,8 @@ namespace hpp { hppDout(info, pinocchio::displayConfig(*(n->configuration()))); } } -#endif } +#endif StatesPathFinder::StatesPathFinder(const core::ProblemConstPtr_t& problem, const core::RoadmapPtr_t& roadmap) : @@ -1211,7 +1209,7 @@ namespace hpp { << "\n-----------------------------------------------"); } - } catch(const core::path_planning_failed&(e)) { + } catch(const core::path_planning_failed& e) { std::ostringstream oss; oss << "Error " << e.what() << "\n"; oss << "Solution " << idxSol_ << ": Failed to build path at edge " << idxConfigList_ << ": "; -- GitLab