Closed hathach closed 6 months ago
I'm also having this issue with tinyusb, exactly the same.
we can fix that, but since i haven't seen the warning:
what compiler? how are you building?
we can fix that, but since i haven't seen the warning:
what compiler? how are you building?
Sorry, forgot to mention way to reproduce the issue. I encounter this when add unique_id as serial number to my tinyusb example. Compiling with gcc 11.2. You can reproduce it by clone tinyusb master and re-enable -Wshadow (I have to temporarily disable it) as follow commit
https://github.com/hathach/tinyusb/compare/master...pico-sdk-1468
CI failed with the warnings when trying to compile with any of device example e.g cdc_msc. https://github.com/hathach/tinyusb/actions/runs/5787485903/job/15684511076#step:8:125
has been merged into develop a while back
I got a folowing warning
warnings seems legit since both the function and pointer are named
flash_range_erase
same asflash_range_program
. Maybe I miss something ?https://github.com/raspberrypi/pico-sdk/blob/6a7db34ff63345a7badec79ebea3aaef1712f374/src/rp2_common/hardware_flash/flash.c#L63C36-L84