Skip to content

Conversation

@HedongGao
Copy link
Contributor

Note: Please adhere to Contributing Guidelines.

Summary

IEEE802154_STATUS_STRING is defined in the .h file, which will generate compilation warning information under some compilers. Moved the position of the variable to fix this issue. At the same time, changed the name of the variable to unify the code style.

Impact

Rename static const char *IEEE802154_STATUS_STRING[] to FAR const char *g_ieee802154_status_string[]. Will not affect the functionality.
This PR needs to be merged with another PR

Testing

gcc compiler has no warning infor for nuttx-apps/wireless/ieee802154/i8sak, but tasking compiler has warning information.

warnning log: unused variable "IEEE802154_STATUS_STRING"

After the issue is fixed, the warning dispeared, and the results compiled with both compilers are normal.

@HedongGao HedongGao changed the title Wireless net/wireless: fix compile warning issue for wireless Dec 23, 2025
fix tasking compile warning isssue
warnning log: unused variable "IEEE802154_STATUS_STRING"

Signed-off-by: gaohedong <gaohedong@xiaomi.com>
dup g_ieee802154_status_string from kernel to fix cmopil issue

Signed-off-by: gaohedong <gaohedong@xiaomi.com>
fix tasking compile warning isssue
warnning log:  undefined reference to 'g_ieee802154_status_string'

Signed-off-by: gaohedong <gaohedong@xiaomi.com>
@linguini1
Copy link
Contributor

It might be better to put this change in the same PR as before? That way there are no CI errors?

@xiaoxiang781216
Copy link
Contributor

xiaoxiang781216 commented Dec 25, 2025

It might be better to put this change in the same PR as before? That way there are no CI errors?

it's impossible since another change is inside nuttx repo. @linguini1

@linguini1
Copy link
Contributor

it's impossible since another change is inside nuttx repo. @linguini1

My bad! Missed seeing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants