diff --git a/hal/common/mbed_critical.c b/hal/common/mbed_critical.c index 0afe0d5ad73..f65f67a8b5d 100644 --- a/hal/common/mbed_critical.c +++ b/hal/common/mbed_critical.c @@ -86,6 +86,11 @@ void core_util_critical_section_exit(void) #if EXCLUSIVE_ACCESS +/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */ +#if defined (__CC_ARM) +#pragma diag_suppress 3731 +#endif + bool core_util_atomic_cas_u8(uint8_t *ptr, uint8_t *expectedCurrentValue, uint8_t desiredValue) { uint8_t currentValue = __LDREXB((volatile uint8_t*)ptr);