union {
struct {
union {
/* rate control */
struct {
struct ieee80211_tx_rate rates[IEEE80211_TX_MAX_RATES];
s8 rts_cts_rate_idx;
}; /////出错地方
/* only needed before rate control */
unsigned long jiffies;
};////出错地方
/* NB: vif can be NULL for injected frames */
struct ieee80211_vif *vif;
struct ieee80211_key_conf *hw_key;
struct ieee80211_sta *sta;
} control;
struct {
struct ieee80211_tx_rate rates[IEEE80211_TX_MAX_RATES];
u8 ampdu_ack_len;
u64 ampdu_ack_map;
int ack_signal;
/* 8 bytes free */
} status;
struct {
struct ieee80211_tx_rate driver_rates[IEEE80211_TX_MAX_RATES];
void *rate_driver_data[IEEE80211_TX_INFO_RATE_DRIVER_DATA_SIZE / sizeof(void *)];
};////出错地方
void *driver_data[IEEE80211_TX_INFO_DRIVER_DATA_SIZE / sizeof(void *)];
};////出错地方
};
编译后四个地方报错:
Error: C2487E: declaration with no effect
Error: C2487E: declaration with no effect
Error: C2487E: declaration with no effect
Error: C2487E: declaration with no effect
这是怎么回事? 是否是结构体嵌套造成的?