借楼请问个问题,现在想改用ac6编译器。关于lwip接收内存池[C] 纯文本查看 复制代码 __attribute__((section(".Rx_PoolSection"))) extern u8_t memp_memory_RX_POOL_base[]; 指定地址时报以下警告。
../LWIP/Target/ethernetif.c(132): warning: section attribute is specified on redeclared variable [-Wsection]
__attribute__((section(".Rx_PoolSection"))) extern u8_t memp_memory_RX_POOL_base[];
^
../LWIP/Target/ethernetif.c(101): note: previous declaration is here
LWIP_MEMPOOL_DECLARE(RX_POOL, ETH_RX_BUFFER_CNT, sizeof(RxBuff_t), "Zero-copy RX PBUF pool");
^
../Middlewares/Third_Party/LwIP/src/include\lwip/memp.h(96): note: expanded from macro 'LWIP_MEMPOOL_DECLARE'
LWIP_DECLARE_MEMORY_ALIGNED(memp_memory_ ## name ## _base, ((num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size)))); \
^
<scratch space>(69): note: expanded from here
memp_memory_RX_POOL_base
个人理解为LWIP_MEMPOOL_DECLARE定义了memp_memory_RX_POOL_base数组,此时未指定具体位置。后续重新声明指定地址冲突发出警告,请问有什么解决办法了? |