From 406c6ae4dd0948caf205dd15b57a25e43e59184f Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 29 Aug 2020 11:09:57 -0700 Subject: [PATCH] arch/sim: Fix clang error: address argument to atomic operation must be a pointer to _Atomic type Signed-off-by: Xiang Xiao --- arch/sim/src/sim/up_testset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sim/src/sim/up_testset.c b/arch/sim/src/sim/up_testset.c index a8dc66077c..79b84e1377 100644 --- a/arch/sim/src/sim/up_testset.c +++ b/arch/sim/src/sim/up_testset.c @@ -74,7 +74,7 @@ uint8_t up_testset(volatile uint8_t *lock) * following test and set is atomic. */ - return atomic_exchange(lock, 1); + return atomic_exchange((_Atomic uint8_t *)lock, 1); #else /* In the non-SMP case, the simulation is implemented with a single thread