mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
revert individual file GCC9 warning exceptions and instead add a global exception to platform.h
This commit is contained in:
parent
8372958f46
commit
478228e04b
3 changed files with 7 additions and 15 deletions
|
@ -62,3 +62,10 @@
|
|||
#include "target/common.h"
|
||||
#include "target.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