mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2178 from c1728p9/supress_warning
Suppress warnings about deprecated __ldrex/strexpull/2185/head
commit
0d3ac5a007
|
@ -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