Skip to content

Conversation

@HedongGao
Copy link
Contributor

@HedongGao HedongGao commented Dec 23, 2025

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

This change has rename static const char *IEEE802154_STATUS_STRING[] to FAR const char *g_ieee802154_status_string[]. It will affect wireless/ieee802154/i8sak/*.c in nuttx-apps repository which used this var. So, I submitted another patch to the nuttx apps repository:
apps 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.

PRs without testing information will not be accepted. We will
request test logs.

@HedongGao
Copy link
Contributor Author

This pr should CI with another one together!

@xiaoxiang781216
Copy link
Contributor

This pr should CI with another one together!

@HedongGao please remove the merge patch from pr.

fix tasking compile warning isssue
warnning log: unused variable "IEEE802154_STATUS_STRING"

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

This pr should CI with another one together!

@HedongGao please remove the merge patch from pr.

DONE

Copy link
Contributor

@linguini1 linguini1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like there are multiple places where it must be renamed still.

@linguini1 linguini1 dismissed their stale review December 25, 2025 02:01

Realizing the other PR which completes the renaming is another repo. My apologies!

@xiaoxiang781216 xiaoxiang781216 merged commit 51681a6 into apache:master Dec 25, 2025
37 of 54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Drivers Drivers issues Size: S The size of the change in this PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants