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

[复制链接]
 楼主| 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

粉丝
快速回复 在线客服 返回列表 返回顶部