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:
commit
1c22dcea84
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue