Xilinx / embeddedsw

Xilinx Embedded Software (embeddedsw) Development
Other
929 stars 1.06k forks source link

Compiler warning when building lwip for 64 bit #280

Open blofeld80 opened 9 months ago

blofeld80 commented 9 months ago

Hi,

the format specifier %08x causes some troube when building for 64bit machines.

xilinx/netif/xadapter.c:187:44: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'UINTPTR' {aka 'long unsigned int'} [-Wformat=] 187 | xil_printf("unable to determine type of EMAC with baseaddress 0x%08x\r\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 188 | mac_baseaddr); | ~~~~~~~~~~~~

HariniKatakamX commented 9 months ago

Thanks for reporting, we'll fix in the next release