1
0
Fork 0
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:
Jonathan Hudson 2019-05-04 20:32:10 +01:00
parent 8372958f46
commit 478228e04b
3 changed files with 7 additions and 15 deletions

View file

@ -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