-1

传递uint8_tto时出现编译器错误atomic_clr。错误是:"passing argument 1 from incompatible pointer type"

这是为什么?

4

1 回答 1

0

应该是指向 volatile 无符号的指针

#include <atomic.h>

void atomic_clr( volatile unsigned * loc,
                 unsigned bits );
于 2013-07-29T14:36:17.570 回答