From 4e7b65260dd9ce822948c7adc345401597e67591 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 31 Jan 2017 10:03:45 -0800 Subject: [PATCH] GCS_MAVLink: shut up mavlink warnings --- libraries/GCS_MAVLink/GCS_MAVLink.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/GCS_MAVLink/GCS_MAVLink.cpp b/libraries/GCS_MAVLink/GCS_MAVLink.cpp index 82e48c9c79..b867515df8 100644 --- a/libraries/GCS_MAVLink/GCS_MAVLink.cpp +++ b/libraries/GCS_MAVLink/GCS_MAVLink.cpp @@ -28,7 +28,12 @@ This provides some support code and variables for MAVLink enabled sketches #ifdef MAVLINK_SEPARATE_HELPERS +// Shut up warnings about missing declarations; TODO: should be fixed on +// mavlink/pymavlink project for when MAVLINK_SEPARATE_HELPERS is defined +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmissing-declarations" #include "include/mavlink/v2.0/mavlink_helpers.h" +#pragma GCC diagnostic pop #endif AP_HAL::UARTDriver *mavlink_comm_port[MAVLINK_COMM_NUM_BUFFERS];