-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
Description of defect
When compiling for a BLE enabled device with LTO flags set I see:
[Warning] pal_rtc.h@76,6: type of 'PalRtcCompareSet' does not match original declaration [-Wlto-type-mismatch]
[Warning] pal_rtc.h@73,6: type of 'PalRtcEnableCompareIrq' does not match original declaration [-Wlto-type-mismatch]
[Warning] pal_rtc.h@74,6: type of 'PalRtcDisableCompareIrq' does not match original declaration [-Wlto-type-mismatch]Target(s) affected by this defect ?
NRF52DK and custom board for BLE Nano 2 (previously part of mbed)
Toolchain(s) (name and version) displaying this defect ?
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
What version of Mbed-os are you using (tag or sha) ?
mbed-os-6.0.0 and the current master
but it's probably existed every since LTO was added.
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
1.10.4
How is this defect reproduced ?
probably build any BLE enabled application with LTO profile and gcc 9.