-
Notifications
You must be signed in to change notification settings - Fork 253
Description
Is your feature request related to a problem? Please describe.
Shouldn't use non-standard packing options. Really should scrub the list.
osal/src/os/inc/common_types.h
Lines 52 to 75 in 1a82657
| /* | |
| ** Define compiler specific macros | |
| ** The __extension__ compiler pragma is required | |
| ** for the uint64 type using GCC with the ANSI C90 standard. | |
| ** Other macros can go in here as needed, for example alignment | |
| ** pragmas. | |
| ** | |
| ** NOTE: The white-box (coverage) unit testing may need to disable | |
| ** these extra attributes. These test builds define the OSAPI_NO_SPECIAL_ATTRIBS | |
| ** macro to disable this. | |
| */ | |
| #if defined(__GNUC__) && !defined(OSAPI_NO_SPECIAL_ATTRIBS) | |
| #define _EXTENSION_ __extension__ | |
| #define OS_PACK __attribute__((packed)) | |
| #define OS_ALIGN(n) __attribute__((aligned(n))) | |
| #define OS_USED __attribute__((used)) | |
| #define OS_PRINTF(n, m) __attribute__((format(printf, n, m))) | |
| #else | |
| #define _EXTENSION_ | |
| #define OS_PACK | |
| #define OS_ALIGN(n) | |
| #define OS_USED | |
| #define OS_PRINTF(n, m) | |
| #endif |
Describe the solution you'd like
Remove/scrub
Describe alternatives you've considered
None
Additional context
None
Requester Info
Jacob Hageman - NASA/GSFC
Reactions are currently unavailable