Skip to content

Commit 284e9f8

Browse files
authored
[HAL] Fixed "intrinsic is deprecated" warnings
Suppressed "#3731-D: intrinsic is deprecated" compiler warnings in critical API.
1 parent 9111aa4 commit 284e9f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hal/common/mbed_critical.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ 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+
#pragma diag_suppress 3731
91+
8992
bool core_util_atomic_cas_u8(uint8_t *ptr, uint8_t *expectedCurrentValue, uint8_t desiredValue)
9093
{
9194
uint8_t currentValue = __LDREXB((volatile uint8_t*)ptr);

0 commit comments

Comments
 (0)