This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

#169-D警告该怎么处理?



使用CCS7.4.1

程序中使用了结构体,定义为volatile,如:

volatile structTypeA  abc;

此结构体代表某一功能块,有较多相同的、这样的功能块。

为了对这个结构体操作,例如初始化,就定义了一个专门用于赋值的结构体:

structTypeB  xyz;

现在编了个函数,对各个功能块初始化, 原形为:

void  Init_Fuction ( structTypeA  *a, structTypeB x)

当使用Init_Fuction ( &abc, &xyz) 时出现警告:

Type #169-D argument of type "volatile structTypeA  *" is incompatible with parameter of type "structTypeA  *"  file.c  line 123 C/C++ Problem

谢谢大家!