embeddedsw icon indicating copy to clipboard operation
embeddedsw copied to clipboard

Compiler warning when building lwip for 64 bit

Open blofeld80 opened this issue 1 year ago • 1 comments

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); | ~~~~~~~~~~~~

blofeld80 avatar Jan 03 '24 20:01 blofeld80

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

HariniKatakamX avatar Jan 04 '24 04:01 HariniKatakamX