|
const A_STRUCT MM =
{
...;
};
const A_STRUCT NN=
{
...;
};
typedef struct
{
int length;
int *pdata;
A_STRUCT *gif;
}B_STRUCT;
const B_STRUCT PP[] =
{
{0, NULL,&MM},
{0, NULL,&NN}
}
编译的时候报这样的警告:
{0, NULL,&MM},
{0, NULL,&NN} 这两行有以下警告
warning: initialization discards qualifiers from pointer target type
请问哪位大虾能帮我纠正一下错误,多谢指点迷津! |
|