Browse Source

GCS_MAVLink: shut up mavlink warnings

mission-4.1.18
Lucas De Marchi 8 years ago
parent
commit
4e7b65260d
  1. 5
      libraries/GCS_MAVLink/GCS_MAVLink.cpp

5
libraries/GCS_MAVLink/GCS_MAVLink.cpp

@ -28,7 +28,12 @@ This provides some support code and variables for MAVLink enabled sketches @@ -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];

Loading…
Cancel
Save