Skip to content

Commit 591aa78

Browse files
committed
TARGET_MCU_NRF51822 - Replace definition of SVCALL with the one used by SDK V11.
This change avoid warnings about unused functions.
1 parent cce4094 commit 591aa78

File tree

1 file changed

+3
-3
lines changed
  • features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/softdevice/s130/headers

1 file changed

+3
-3
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sdk/source/softdevice/s130/headers/nrf_svc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
#define SVCALL(number, return_type, signature) return_type __svc(number) signature
4343
#elif defined (__GNUC__)
4444
#define SVCALL(number, return_type, signature) \
45-
_Pragma("GCC diagnostic ignored \"-Wunused-function\"") \
46-
_Pragma("GCC diagnostic ignored \"-Wunused-parameter\"") \
4745
_Pragma("GCC diagnostic push") \
4846
_Pragma("GCC diagnostic ignored \"-Wreturn-type\"") \
49-
__attribute__((naked)) static return_type signature \
47+
__attribute__((naked)) \
48+
__attribute__((unused)) \
49+
static return_type signature \
5050
{ \
5151
__asm( \
5252
"svc %0\n" \

0 commit comments

Comments
 (0)