Skip to content

Commit 9eafc81

Browse files
authored
Fixed compiler warning suppression
"#3731-D: intrinsic is deprecated" compiler warnings should only be suppressed on the ARM toolchain.
1 parent 284e9f8 commit 9eafc81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hal/common/mbed_critical.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ void core_util_critical_section_exit(void)
8787
#if EXCLUSIVE_ACCESS
8888

8989
/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
90+
#if defined (__CC_ARM)
9091
#pragma diag_suppress 3731
92+
#endif
9193

9294
bool core_util_atomic_cas_u8(uint8_t *ptr, uint8_t *expectedCurrentValue, uint8_t desiredValue)
9395
{

0 commit comments

Comments
 (0)