Skip to content

fix variable set but not used#2302

Closed
Gary-Hobson wants to merge 1 commit into
apache:masterfrom
Gary-Hobson:assert
Closed

fix variable set but not used#2302
Gary-Hobson wants to merge 1 commit into
apache:masterfrom
Gary-Hobson:assert

Conversation

@Gary-Hobson

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

Copy link
Copy Markdown
Contributor

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

acassis commented Feb 22, 2024

Copy link
Copy Markdown
Contributor

Please verify the issues with sim/zipfs

@xiaoxiang781216

Copy link
Copy Markdown
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.

3 participants