Skip to content

Suppress warnings about deprecated __ldrex/strex #2178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions rtos/rtx/TARGET_CORTEX_A/rt_HAL_CA.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
#undef __USE_EXCLUSIVE_ACCESS
#endif

/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
#ifdef __USE_EXCLUSIVE_ACCESS
#pragma diag_suppress 3731
#endif

#elif defined (__GNUC__) /* GNU Compiler */

#undef __USE_EXCLUSIVE_ACCESS
Expand Down
5 changes: 5 additions & 0 deletions rtos/rtx/TARGET_CORTEX_A/rt_HAL_CM.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
#undef __USE_EXCLUSIVE_ACCESS
#endif

/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
#ifdef __USE_EXCLUSIVE_ACCESS
#pragma diag_suppress 3731
#endif

#elif defined (__GNUC__) /* GNU Compiler */

#undef __USE_EXCLUSIVE_ACCESS
Expand Down
5 changes: 5 additions & 0 deletions rtos/rtx/TARGET_CORTEX_M/rt_HAL_CM.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
#undef __USE_EXCLUSIVE_ACCESS
#endif

/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
#ifdef __USE_EXCLUSIVE_ACCESS
#pragma diag_suppress 3731
#endif

#ifndef __CMSIS_GENERIC
#define __DMB() do {\
__schedule_barrier();\
Expand Down