LwIP compilation errors/warnings when enabling IPv6 feature
Hi All,
You may encounter some LwIP compilation errors/warnings when enabling IPv6 feature due to compiler packing management implemented in the system\arch include files
1. EWARM warnings:
Warning[Pa039]: use of address of unaligned structure member \Middlewares\Third_Party\LwIP\src\netif\lowpan6_common.c 504
Workaround: Disable flag PACK_STRUCT_USE_INCLUDES by uncommenting the #define PACK_STRUCT_USE_INCLUDES line in arch\cc.h include file
2. MDK-ARM errors:
../Middlewares/Third_Party/LwIP/src/netif/lowpan6_common.c(504): error: #167: argument of type "__packed u32_t *" is incompatible with parameter of type "void *restrict"
Workaround: Don’t packet the IPv6 struct by replacing #define PACK_STRUCT_BEGIN __packed by #define PACK_STRUCT_BEGIN in arch\cc.h
3. GNU compiler:
No errors/warnings
Regards,
