Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
传递uint8_tto时出现编译器错误atomic_clr。错误是:"passing argument 1 from incompatible pointer type"。
uint8_t
atomic_clr
"passing argument 1 from incompatible pointer type"
这是为什么?
应该是指向 volatile 无符号的指针
#include <atomic.h> void atomic_clr( volatile unsigned * loc, unsigned bits );