diff --git a/examples/platforms/nrf528xx/nrf52811/Makefile.am b/examples/platforms/nrf528xx/nrf52811/Makefile.am index 386e1528b..43803bab3 100644 --- a/examples/platforms/nrf528xx/nrf52811/Makefile.am +++ b/examples/platforms/nrf528xx/nrf52811/Makefile.am @@ -64,7 +64,6 @@ COMMONCPPFLAGS -I$(top_srcdir)/third_party/NordicSemiconductor/drivers/radio/rsch/raal \ -I$(top_srcdir)/third_party/NordicSemiconductor/drivers/radio/platform/lp_timer \ -I$(top_srcdir)/third_party/NordicSemiconductor/drivers/radio/platform/temperature \ - -Wno-unused-parameter \ $(NULL) # Only reference the SDK header files included in third_party/NordicSemiconductor @@ -99,7 +98,6 @@ COMMONCPPFLAGS -I$(top_srcdir)/third_party/NordicSemiconductor/nrfx/drivers/include \ -I$(top_srcdir)/third_party/NordicSemiconductor/nrfx/mdk \ -I$(top_srcdir)/third_party/NordicSemiconductor/nrfx/soc \ - -Wno-unused-parameter \ $(NULL) endif diff --git a/examples/platforms/nrf528xx/nrf52833/Makefile.am b/examples/platforms/nrf528xx/nrf52833/Makefile.am index eb59eb5a7..21ee11784 100644 --- a/examples/platforms/nrf528xx/nrf52833/Makefile.am +++ b/examples/platforms/nrf528xx/nrf52833/Makefile.am @@ -66,7 +66,6 @@ COMMONCPPFLAGS -I$(top_srcdir)/third_party/NordicSemiconductor/drivers/radio/rsch/raal/softdevice \ -I$(top_srcdir)/third_party/NordicSemiconductor/drivers/radio/platform/lp_timer \ -I$(top_srcdir)/third_party/NordicSemiconductor/drivers/radio/platform/temperature \ - -Wno-unused-parameter \ $(NULL) # Only reference the SDK header files included in third_party/NordicSemiconductor @@ -108,7 +107,6 @@ COMMONCPPFLAGS -I$(top_srcdir)/third_party/NordicSemiconductor/nrfx/soc \ -I$(top_srcdir)/third_party/NordicSemiconductor/softdevice/s140/headers \ -I$(top_srcdir)/third_party/NordicSemiconductor/softdevice/s140/headers/nrf52 \ - -Wno-unused-parameter \ $(NULL) endif @@ -144,6 +142,7 @@ SOFTDEVICE_SOURCES SOFTDEVICE_CPPFLAGS = \ -DSOFTDEVICE_PRESENT \ -DS140 \ + -Wno-unused-parameter \ $(NULL) PLATFORM_SOURCES = \ diff --git a/examples/platforms/nrf528xx/nrf52840/Makefile.am b/examples/platforms/nrf528xx/nrf52840/Makefile.am index 6062fa488..863775bdb 100644 --- a/examples/platforms/nrf528xx/nrf52840/Makefile.am +++ b/examples/platforms/nrf528xx/nrf52840/Makefile.am @@ -66,7 +66,6 @@ COMMONCPPFLAGS -I$(top_srcdir)/third_party/NordicSemiconductor/drivers/radio/rsch/raal/softdevice \ -I$(top_srcdir)/third_party/NordicSemiconductor/drivers/radio/platform/lp_timer \ -I$(top_srcdir)/third_party/NordicSemiconductor/drivers/radio/platform/temperature \ - -Wno-unused-parameter \ $(NULL) # Only reference the SDK header files included in third_party/NordicSemiconductor @@ -108,7 +107,6 @@ COMMONCPPFLAGS -I$(top_srcdir)/third_party/NordicSemiconductor/nrfx/soc \ -I$(top_srcdir)/third_party/NordicSemiconductor/softdevice/s140/headers \ -I$(top_srcdir)/third_party/NordicSemiconductor/softdevice/s140/headers/nrf52 \ - -Wno-unused-parameter \ $(NULL) endif @@ -145,6 +143,7 @@ SOFTDEVICE_SOURCES SOFTDEVICE_CPPFLAGS = \ -DSOFTDEVICE_PRESENT \ -DS140 \ + -Wno-unused-parameter \ $(NULL) PLATFORM_SOURCES = \ @@ -154,7 +153,7 @@ PLATFORM_SOURCES libopenthread_nrf52840_a_CPPFLAGS = \ $(COMMONCPPFLAGS) \ $(SINGLEPHY_CPPFLAGS) \ - -DPLATFORM_OPENTHREAD_VANILLA \ + -DPLATFORM_OPENTHREAD_VANILLA \ $(NULL) libopenthread_nrf52840_a_SOURCES = \ diff --git a/examples/platforms/nrf528xx/src/radio.c b/examples/platforms/nrf528xx/src/radio.c index a8a0cd708..702713efc 100644 --- a/examples/platforms/nrf528xx/src/radio.c +++ b/examples/platforms/nrf528xx/src/radio.c @@ -1090,6 +1090,7 @@ void nrf_802154_transmitted_timestamp_raw(const uint8_t *aFrame, uint8_t aLqi, uint32_t ack_time) { + OT_UNUSED_VARIABLE(aFrame); // For ARM gcc assert(aFrame == sTransmitPsdu); if (aAckPsdu == NULL) @@ -1114,6 +1115,7 @@ void nrf_802154_transmitted_timestamp_raw(const uint8_t *aFrame, void nrf_802154_transmit_failed(const uint8_t *aFrame, nrf_802154_tx_error_t error) { + OT_UNUSED_VARIABLE(aFrame); // For ARM gcc assert(aFrame == sTransmitPsdu); switch (error) @@ -1266,6 +1268,8 @@ void otPlatRadioSetMacFrameCounter(otInstance *aInstance, uint32_t aMacFrameCoun #if OPENTHREAD_CONFIG_MAC_CSL_RECEIVER_ENABLE static void updateIeData(otInstance *aInstance, const uint8_t *aShortAddr, const uint8_t *aExtAddr) { + OT_UNUSED_VARIABLE(aInstance); + int8_t offset = 0; uint8_t ackIeData[OT_ACK_IE_MAX_SIZE]; @@ -1325,6 +1329,9 @@ otError otPlatRadioConfigureEnhAckProbing(otInstance * aInstance, const otExtAddress * aExtAddress) { OT_UNUSED_VARIABLE(aInstance); + OT_UNUSED_VARIABLE(aLinkMetrics); + OT_UNUSED_VARIABLE(aShortAddress); + OT_UNUSED_VARIABLE(aExtAddress); return OT_ERROR_NOT_IMPLEMENTED; } diff --git a/examples/platforms/nrf528xx/src/transport/transport.c b/examples/platforms/nrf528xx/src/transport/transport.c index 2ffe20556..074be8864 100644 --- a/examples/platforms/nrf528xx/src/transport/transport.c +++ b/examples/platforms/nrf528xx/src/transport/transport.c @@ -40,6 +40,8 @@ void nrf5TransportInit(bool aPseudoReset) { + OT_UNUSED_VARIABLE(aPseudoReset); + #if ((UART_AS_SERIAL_TRANSPORT == 1) || (USB_CDC_AS_SERIAL_TRANSPORT == 1)) if (!aPseudoReset) { @@ -52,13 +54,14 @@ void nrf5TransportInit(bool aPseudoReset) #endif #if (SPIS_AS_SERIAL_TRANSPORT == 1) - OT_UNUSED_VARIABLE(aPseudoReset); nrf5SpiSlaveInit(); #endif } void nrf5TransportDeinit(bool aPseudoReset) { + OT_UNUSED_VARIABLE(aPseudoReset); + #if ((UART_AS_SERIAL_TRANSPORT == 1) || (USB_CDC_AS_SERIAL_TRANSPORT == 1)) if (!aPseudoReset) { @@ -67,7 +70,6 @@ void nrf5TransportDeinit(bool aPseudoReset) #endif #if (SPIS_AS_SERIAL_TRANSPORT == 1) - OT_UNUSED_VARIABLE(aPseudoReset); nrf5SpiSlaveDeinit(); #endif }