打印

CCS3.3非标准位域出现的警告,附程序

[复制链接]
3670|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
qjhu0433|  楼主 | 2009-11-17 14:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
编译器如何设置可以消除这种警告呢?

              struct CMD_BITS
              {                                     // bit description
LINE:45    UINT32      Bfa:10;           // 10 Don't care bits/BufferAddess bits
LINE:46    UINT32      PageAddr:12;  // 12 Page Addr bits
LINE:47    UINT32      Rsvd2:2;         // 2 Don't care bits
LINE:48    UINT32      OpCode:8;      // 8 Op Code bits
              };
              struct CMD_WORD
              {
LINE:53    UINT32       low:16;
LINE:54    UINT32       high:16;
              };
              union AT45_CMD
              {
                struct  CMD_WORD  word;
                struct  CMD_BITS  bit;
              };


"drv_spi.c", line 45: warning: nonstandard type for a bit field
"drv_spi.c", line 46: warning: nonstandard type for a bit field
"drv_spi.c", line 47: warning: nonstandard type for a bit field
"drv_spi.c", line 48: warning: nonstandard type for a bit field
"drv_spi.c", line 53: warning: nonstandard type for a bit field
"drv_spi.c", line 54: warning: nonstandard type for a bit field

相关帖子

沙发
xklzw| | 2015-5-26 10:24 | 只看该作者
我也遇到了.

使用特权

评论回复
板凳
xklzw| | 2015-5-26 10:25 | 只看该作者
但是好像对程序的运行没有影响

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

5

主题

10

帖子

1

粉丝