diff --git a/src/comm/QGCMAVLink.h b/src/comm/QGCMAVLink.h index 202fee0..19f710b 100644 --- a/src/comm/QGCMAVLink.h +++ b/src/comm/QGCMAVLink.h @@ -22,9 +22,16 @@ // 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