Skip to content

Commit 59e2f96

Browse files
committed
Suppress warnings about deprecated __ldrex/strex
Suppress warnings about ARMCC warnings about the __ldrex and __strex intrinsics to match CMSIS 5.
1 parent d0d023a commit 59e2f96

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

rtos/rtx/TARGET_CORTEX_A/rt_HAL_CA.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@
6060
#undef __USE_EXCLUSIVE_ACCESS
6161
#endif
6262

63+
/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
64+
#ifdef __USE_EXCLUSIVE_ACCESS
65+
#pragma diag_suppress 3731
66+
#endif
67+
6368
#elif defined (__GNUC__) /* GNU Compiler */
6469

6570
#undef __USE_EXCLUSIVE_ACCESS

rtos/rtx/TARGET_CORTEX_A/rt_HAL_CM.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
#undef __USE_EXCLUSIVE_ACCESS
4747
#endif
4848

49+
/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
50+
#ifdef __USE_EXCLUSIVE_ACCESS
51+
#pragma diag_suppress 3731
52+
#endif
53+
4954
#elif defined (__GNUC__) /* GNU Compiler */
5055

5156
#undef __USE_EXCLUSIVE_ACCESS

rtos/rtx/TARGET_CORTEX_M/rt_HAL_CM.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@
4747
#undef __USE_EXCLUSIVE_ACCESS
4848
#endif
4949

50+
/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
51+
#ifdef __USE_EXCLUSIVE_ACCESS
52+
#pragma diag_suppress 3731
53+
#endif
54+
5055
#ifndef __CMSIS_GENERIC
5156
#define __DMB() do {\
5257
__schedule_barrier();\

0 commit comments

Comments
 (0)