mirror of https://github.com/ARMmbed/mbed-os.git
Suppress warnings about deprecated __ldrex/strex
Suppress warnings about ARMCC warnings about the __ldrex and __strex intrinsics to match CMSIS 5.pull/2178/head
parent
d0d023ab58
commit
59e2f9621c
|
@ -60,6 +60,11 @@
|
|||
#undef __USE_EXCLUSIVE_ACCESS
|
||||
#endif
|
||||
|
||||
/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
|
||||
#ifdef __USE_EXCLUSIVE_ACCESS
|
||||
#pragma diag_suppress 3731
|
||||
#endif
|
||||
|
||||
#elif defined (__GNUC__) /* GNU Compiler */
|
||||
|
||||
#undef __USE_EXCLUSIVE_ACCESS
|
||||
|
|
|
@ -46,6 +46,11 @@
|
|||
#undef __USE_EXCLUSIVE_ACCESS
|
||||
#endif
|
||||
|
||||
/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
|
||||
#ifdef __USE_EXCLUSIVE_ACCESS
|
||||
#pragma diag_suppress 3731
|
||||
#endif
|
||||
|
||||
#elif defined (__GNUC__) /* GNU Compiler */
|
||||
|
||||
#undef __USE_EXCLUSIVE_ACCESS
|
||||
|
|
|
@ -47,6 +47,11 @@
|
|||
#undef __USE_EXCLUSIVE_ACCESS
|
||||
#endif
|
||||
|
||||
/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
|
||||
#ifdef __USE_EXCLUSIVE_ACCESS
|
||||
#pragma diag_suppress 3731
|
||||
#endif
|
||||
|
||||
#ifndef __CMSIS_GENERIC
|
||||
#define __DMB() do {\
|
||||
__schedule_barrier();\
|
||||
|
|
Loading…
Reference in New Issue