Commit 6a7c02f5 authored by Patrick José Pereira's avatar Patrick José Pereira

QGCMavlink: Add GCC version check to use address-of-packed-member

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 1200542b
......@@ -22,8 +22,15 @@
// Ignore warnings from mavlink headers for both GCC/Clang and MSVC
#ifdef __GNUC__
#if __GNUC__ > 8
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
#else
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wall"
#endif
#else
#pragma warning(push, 0)
#endif
......
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