mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
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"
|
#pragma GCC diagnostic ignored "-Wredundant-decls"
|
||||||
|
|
||||||
// used to pack structures
|
// used to pack structures
|
||||||
|
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
||||||
|
#define PACKED
|
||||||
|
#else
|
||||||
#define PACKED __attribute__((__packed__))
|
#define PACKED __attribute__((__packed__))
|
||||||
|
#endif
|
||||||
|
|
||||||
// Make some dire warnings into errors
|
// Make some dire warnings into errors
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user