Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix variable set but not used #2302

Closed
wants to merge 1 commit into from
Closed

Conversation

Gary-Hobson
Copy link
Contributor

@Gary-Hobson Gary-Hobson commented Feb 22, 2024

Summary

These variables will trigger variable 'ret' set but not used warnings due to different configurations.

For using variables only in assert, added UNUSED to declare
Warnings in external repositories are ignored in the makefile

Impact

Let's ignore the following format check, which seems to have nothing to do with this change

apps/modbus/nuttx/porttimer.c:51:9: error: Mixed case identifier found
  return xMBPortSerialSetTimeout(ulTimeOut);

Testing

These variables will trigger variable 'ret' set but not used warnings due to different configurations.

For using variables only in assert, added UNUSED to declare
Warnings in external repositories are ignored in the makefile

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
@acassis
Copy link
Contributor

acassis commented Feb 22, 2024

Please verify the issues with sim/zipfs

@xiaoxiang781216
Copy link
Contributor

I think it doesn't need with the new approach. Let's close it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants