标签: c atomic
将uint8_t传递给atomic_clr时出现编译错误。错误是:"passing argument 1 from incompatible pointer type"。
uint8_t
atomic_clr
"passing argument 1 from incompatible pointer type"
为什么?
答案 0 :(得分:0)
应该是volatile unsigned
#include <atomic.h> void atomic_clr( volatile unsigned * loc, unsigned bits );