Unverified Commit 98f8bb2e authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8364 from patrickelectric/gcc_version

QGCMavlink: Add GCC version check to use address-of-packed-member
parents 1c506047 6a7c02f5
......@@ -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