mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 15:43:33 +08:00
-Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo
This commit is contained in:
@@ -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