Browse Source

Merge pull request #8349 from patrickelectric/KILL_IT_WITH_FIRE

QGCMAVLink: Remove mavlink warnings
QGC4.4
Don Gagne 5 years ago committed by GitHub
parent
commit
a9493c2d2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      src/comm/QGCMAVLink.h

9
src/comm/QGCMAVLink.h

@ -19,10 +19,19 @@ @@ -19,10 +19,19 @@
#define MAVLINK_USE_MESSAGE_INFO
#define MAVLINK_EXTERNAL_RX_STATUS // Single m_mavlink_status instance is in QGCApplication.cc
#include <stddef.h> // Hack workaround for Mav 2.0 header problem with respect to offsetof usage
// Ignore warnings from mavlink headers for both GCC/Clang and MSVC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
#pragma warning(push, 0)
#include <mavlink_types.h>
extern mavlink_status_t m_mavlink_status[MAVLINK_COMM_NUM_BUFFERS];
#include <mavlink.h>
#pragma GCC diagnostic pop
#pragma warning(pop, 0)
class QGCMAVLink {
public:
static bool isFixedWing(MAV_TYPE mavType);

Loading…
Cancel
Save