Skip to content

Commit e27571f

Browse files
author
Johnny Robeson
committed
This fixes lto type mismatch warnings in 3 functions
```sh [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] ```
1 parent ad40b1b commit e27571f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

connectivity/FEATURE_BLE/source/cordio/stack_adaptation/pal_mbed_os_adaptation.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ MBED_WEAK void PalRtcInit()
6969
MBED_ERROR(function_not_implemented, "Provide implementation of PalRtcInit");
7070
}
7171

72-
MBED_WEAK void PalRtcEnableCompareIrq()
72+
MBED_WEAK void PalRtcEnableCompareIrq(uint8_t channelId)
7373
{
7474
MBED_ERROR(function_not_implemented, "Provide implementation of PalRtcEnableCompareIrq");
7575
}
7676

77-
MBED_WEAK void PalRtcDisableCompareIrq()
77+
MBED_WEAK void PalRtcDisableCompareIrq(uint8_t channelId)
7878
{
7979
MBED_ERROR(function_not_implemented, "Provide implementation of PalRtcDisableCompareIrq");
8080
}
@@ -85,7 +85,7 @@ MBED_WEAK uint32_t PalRtcCounterGet()
8585
return 0;
8686
}
8787

88-
MBED_WEAK void PalRtcCompareSet(uint32_t value)
88+
MBED_WEAK void PalRtcCompareSet(uint8_t channelId, uint32_t value)
8989
{
9090
MBED_ERROR(function_not_implemented, "Provide implementation of PalRtcCompareSet");
9191
}

0 commit comments

Comments
 (0)