mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 07:43:33 +08:00
Safer virtual methods; this breaks compatibility with GCC 4.6
This commit is contained in:
@@ -21,7 +21,7 @@ namespace uavcan_linux
|
||||
*/
|
||||
class DefaultLogSink : public uavcan::ILogSink
|
||||
{
|
||||
virtual void log(const uavcan::protocol::debug::LogMessage& message)
|
||||
void log(const uavcan::protocol::debug::LogMessage& message) override
|
||||
{
|
||||
const auto tt = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
|
||||
const auto tstr = std::ctime(&tt);
|
||||
|
||||
Reference in New Issue
Block a user