Skip to content

Warning LTO type mismatch in pal_rtc.h #13644

@ghost

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions