Skip to content

Commit fe8bd7d

Browse files
authored
Merge pull request #2597 from neilt6/neilt6-critical-patch
[HAL] Fixed "intrinsic is deprecated" warnings
2 parents 8d54243 + 9eafc81 commit fe8bd7d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hal/common/mbed_critical.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ void core_util_critical_section_exit(void)
8686

8787
#if EXCLUSIVE_ACCESS
8888

89+
/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
90+
#if defined (__CC_ARM)
91+
#pragma diag_suppress 3731
92+
#endif
93+
8994
bool core_util_atomic_cas_u8(uint8_t *ptr, uint8_t *expectedCurrentValue, uint8_t desiredValue)
9095
{
9196
uint8_t currentValue = __LDREXB((volatile uint8_t*)ptr);

0 commit comments

Comments
 (0)