Commit 5006a706 authored by Patrick José Pereira's avatar Patrick José Pereira

QGCMAVLink: Remove mavlink warnings

mavlink as submodule contains more warnings than particles in the universe.
This results in a terrible experience for developers, since it makes harder to find
real warning messages for QGC.
Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent a6d15868
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment