AP_Common: make PACKED depend on architecture
this will remove lots of warnings when building with arduino
This commit is contained in:
parent
ed5ddfd9db
commit
62b9a580e8
@ -25,7 +25,11 @@
|
||||
#pragma GCC diagnostic ignored "-Wredundant-decls"
|
||||
|
||||
// used to pack structures
|
||||
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
||||
#define PACKED
|
||||
#else
|
||||
#define PACKED __attribute__((__packed__))
|
||||
#endif
|
||||
|
||||
// Make some dire warnings into errors
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user