AP_Common: added a define for PACKED

neater than a pragma
This commit is contained in:
Andrew Tridgell 2013-04-19 17:47:27 +10:00
parent 8d727614b4
commit 4fe5ce8a09
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@
#pragma GCC diagnostic warning "-Wlogical-op"
#pragma GCC diagnostic ignored "-Wredundant-decls"
// used to pack structures
#define PACKED __attribute__((__packed__))
// Make some dire warnings into errors
//
// Some warnings indicate questionable code; rather than let