1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 16:25:26 +03:00

Merge pull request #4679 from iNavFlight/jh-gcc9-warning-fixes

gcc9 warning fix
This commit is contained in:
stronnag 2019-05-05 07:52:50 +01:00 committed by GitHub
commit 1c22dcea84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,3 +62,10 @@
#include "target/common.h" #include "target/common.h"
#include "target.h" #include "target.h"
#include "target/common_post.h" #include "target/common_post.h"
// Remove the unaligned packed structure member pointer access warning
// The compiler guarantees that unaligned access is safe for packed structures.
#if (__GNUC__ >= 9)
#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
#endif