Skip to content

Build warnings in 2.9.1 #13

@adam-durridge

Description

@adam-durridge

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:

rsi_wlan_cb_non_rom->callback_list.sl_wifi_btr_80211_data_receive_cb = callback_handler_ptr;

and

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions