Compiler warning when building lwip for 64 bit
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1.2k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
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);
| ~~~~~~~~~~~~
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open xilinx/netif/xadapter.c around line 187 and inspect the format string used for mac_baseaddr. Build lwip for a 64-bit target and confirm that the compiler warning about the %x argument is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100