mcuboot
mcuboot copied to clipboard
IAR compiler compatibility break in image.h
#ifndef __packed
#define __packed __attribute__((__packed__))
#endif
This is a compatibility break with IAR compiler. __packed is already a keyword that eliminates padding between members. This is not a definition, meaning it will always fall under the #ifndef. Any additions that uses __packed will be replaced by the definition given. Since this macro is targeted for GCC compiler, this should either be wrapped around a macro that checks if the compiler being used is GCC.
Please submit a PR with the fix
PR has been created
New PR is https://github.com/mcu-tools/mcuboot/pull/2149