From 40090dcce91b017209f307082e205d9b4aee54eb Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Sat, 2 Jan 2021 17:23:07 +0000 Subject: [PATCH] AP_UAVCAN: compile fix for debug/assertions --- libraries/AP_UAVCAN/AP_UAVCAN.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_UAVCAN/AP_UAVCAN.cpp b/libraries/AP_UAVCAN/AP_UAVCAN.cpp index ec874eeabe..a64415a518 100644 --- a/libraries/AP_UAVCAN/AP_UAVCAN.cpp +++ b/libraries/AP_UAVCAN/AP_UAVCAN.cpp @@ -182,6 +182,8 @@ bool AP_UAVCAN::add_interface(AP_HAL::CANIface* can_iface) { return true; } +#pragma GCC diagnostic push +#pragma GCC diagnostic error "-Wframe-larger-than=1400" void AP_UAVCAN::init(uint8_t driver_index, bool enable_filters) { _driver_index = driver_index; @@ -338,6 +340,7 @@ void AP_UAVCAN::init(uint8_t driver_index, bool enable_filters) _initialized = true; debug_uavcan(AP_CANManager::LOG_INFO, "UAVCAN: init done\n\r"); } +#pragma GCC diagnostic pop // send ESC telemetry messages over MAVLink void AP_UAVCAN::send_esc_telemetry_mavlink(uint8_t mav_chan)