-
Notifications
You must be signed in to change notification settings - Fork 24
Description
While updating from 2.8.0 to 2.9.0 I ran into these two "assignment from incompatible pointer type [-Wincompatible-pointer-types]" warnings in rsi_wlan_apis.c:
wiseconnect-wifi-bt-sdk/sapi/wlan/rsi_wlan_apis.c
Line 7850 in c95f054
| rsi_wlan_cb_non_rom->callback_list.sl_wifi_btr_80211_data_receive_cb = callback_handler_ptr; |
and
wiseconnect-wifi-bt-sdk/sapi/wlan/rsi_wlan_apis.c
Line 7856 in c95f054
| rsi_wlan_cb_non_rom->callback_list.sl_wifi_btr_80211_tx_data_status_cb = callback_handler_ptr; |
Both lines are in uint16_t rsi_wlan_register_callbacks().
This function takes a callback handler pointer of this type as an argument:
void (*callback_handler_ptr)(uint16_t status, uint8_t *buffer, const uint32_t length))
The two callbacks in question have these prototypes:
void (*sl_wifi_btr_80211_data_receive_cb)(RSI_STATUS status, uint8_t *buffer, uint32_t length, int8_t rssi, uint32_t rate);
and
void (*sl_wifi_btr_80211_tx_data_status_cb)(uint16_t status, uint32_t token, uint8_t priority, uint32_t rate);
I'm not currently using this feature, however I'd like to get rid of the warnings without hacking it up too badly.