Unverified Commit a85ff4dc authored by Thomas PEYRUCAIN's avatar Thomas PEYRUCAIN Committed by GitHub
Browse files

Fix warning

tsid/src/tasks/task-motion.cpp: In member function ‘virtual const TrajectorySample& tsid::tasks::TaskMotion::getReference() const’:
tsid/src/tasks/task-motion.cpp:43:89: warning: returning reference to temporary [-Wreturn-local-addr]
     const TrajectorySample & TaskMotion::getReference() const { return TrajectorySample(); }
                                                                                         ^
parent 2776ca9a
Pipeline #11257 passed with stage
in 23 minutes and 34 seconds
......@@ -40,7 +40,7 @@ namespace tsid
return m_mask.size() > 0;
}
const TrajectorySample & TaskMotion::getReference() const { return TrajectorySample(); }
const TrajectorySample & TaskMotion::getReference() const { return TrajectorySample_dummy; }
const Vector & TaskMotion::getDesiredAcceleration() const { return m_dummy; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment