为什么我从pc lint No 63收到“ Expected a lvalue”错误?

问题描述

我经常从pc lint收到此错误“ Expected a lvalue”,但是我的代码编译没有问题。

file.h

typedef struct
{
    uint8_t data[MESSAGE_SIZE];
} buffer_t;

file.c

buffer_t re;
re.data[0] = 0x07;  //Here is the error,"Expected an lvalue"

任何人都可以向我解释吗?我已经有左值re并且它是可寻址的。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)