From e27571fb83374a32bc8f792250c751943137aea9 Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Mon, 12 Oct 2020 07:02:18 -0400 Subject: [PATCH] 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] ``` --- .../cordio/stack_adaptation/pal_mbed_os_adaptation.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/connectivity/FEATURE_BLE/source/cordio/stack_adaptation/pal_mbed_os_adaptation.cpp b/connectivity/FEATURE_BLE/source/cordio/stack_adaptation/pal_mbed_os_adaptation.cpp index 3ef6aa6913..3cc95861ab 100644 --- a/connectivity/FEATURE_BLE/source/cordio/stack_adaptation/pal_mbed_os_adaptation.cpp +++ b/connectivity/FEATURE_BLE/source/cordio/stack_adaptation/pal_mbed_os_adaptation.cpp @@ -69,12 +69,12 @@ MBED_WEAK void PalRtcInit() MBED_ERROR(function_not_implemented, "Provide implementation of PalRtcInit"); } -MBED_WEAK void PalRtcEnableCompareIrq() +MBED_WEAK void PalRtcEnableCompareIrq(uint8_t channelId) { MBED_ERROR(function_not_implemented, "Provide implementation of PalRtcEnableCompareIrq"); } -MBED_WEAK void PalRtcDisableCompareIrq() +MBED_WEAK void PalRtcDisableCompareIrq(uint8_t channelId) { MBED_ERROR(function_not_implemented, "Provide implementation of PalRtcDisableCompareIrq"); } @@ -85,7 +85,7 @@ MBED_WEAK uint32_t PalRtcCounterGet() return 0; } -MBED_WEAK void PalRtcCompareSet(uint32_t value) +MBED_WEAK void PalRtcCompareSet(uint8_t channelId, uint32_t value) { MBED_ERROR(function_not_implemented, "Provide implementation of PalRtcCompareSet"); }