mirror of https://github.com/ARMmbed/mbed-os.git
TARGET_MCU_NRF51822 - Replace definition of SVCALL with the one used by SDK V11.
This change avoid warnings about unused functions.pull/2785/head
parent
cce4094f37
commit
591aa78b55
|
@ -42,11 +42,11 @@
|
|||
#define SVCALL(number, return_type, signature) return_type __svc(number) signature
|
||||
#elif defined (__GNUC__)
|
||||
#define SVCALL(number, return_type, signature) \
|
||||
_Pragma("GCC diagnostic ignored \"-Wunused-function\"") \
|
||||
_Pragma("GCC diagnostic ignored \"-Wunused-parameter\"") \
|
||||
_Pragma("GCC diagnostic push") \
|
||||
_Pragma("GCC diagnostic ignored \"-Wreturn-type\"") \
|
||||
__attribute__((naked)) static return_type signature \
|
||||
__attribute__((naked)) \
|
||||
__attribute__((unused)) \
|
||||
static return_type signature \
|
||||
{ \
|
||||
__asm( \
|
||||
"svc %0\n" \
|
||||
|
|
Loading…
Reference in New Issue