mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 02:53:34 +08:00
-Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo
This commit is contained in:
@@ -43,7 +43,7 @@ struct ServiceCallResultHandler
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "MISMATCH: status=" << last_status << ", last_server_node_id="
|
||||
std::cout << "MISMATCH: status=" << int(last_status) << ", last_server_node_id="
|
||||
<< int(last_server_node_id.get()) << ", last response:\n" << last_response << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -73,11 +73,11 @@ struct PairableCanDriver : public uavcan::ICanDriver, public uavcan::ICanIface
|
||||
|
||||
virtual uavcan::ICanIface* getIface(uavcan::uint8_t iface_index)
|
||||
{
|
||||
if (iface_index == 0)
|
||||
{
|
||||
return this;
|
||||
}
|
||||
return UAVCAN_NULLPTR;
|
||||
return (iface_index == 0) ? this : UAVCAN_NULLPTR;
|
||||
}
|
||||
virtual const uavcan::ICanIface* getIface(uavcan::uint8_t iface_index) const
|
||||
{
|
||||
return (iface_index == 0) ? this : UAVCAN_NULLPTR;
|
||||
}
|
||||
|
||||
virtual uavcan::uint8_t getNumIfaces() const { return 1; }
|
||||
|
||||
Reference in New Issue
Block a user