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

Unused Variable Warnings on Nuvoton Targers #15387

Closed
matthewg276 opened this issue Mar 8, 2023 · 3 comments
Closed

Unused Variable Warnings on Nuvoton Targers #15387

matthewg276 opened this issue Mar 8, 2023 · 3 comments

Comments

@matthewg276
Copy link

Description of defect

Nuvoton target libraries declare a uint32 variable within a header file (m480_ccap.h and nuc472_cap.h). It does not appear this variable is ever used and because of this, a large number of warnings are generating when compiling these targets since this file is included in M480.h.

Example warning

[Warning] m480_ccap.h@86,17: 'u32EscapeFrame' defined but not used [-Wunused-variable]

Target(s) affected by this defect ?

  • NUMAKER_PFM_M487
  • NUMAKER_IOT_M487

Potentially NUC472 though I have not verified.

Toolchain(s) (name and version) displaying this defect ?

  • Using latest docker image ( ghcr.io/armmbed/mbed-os-env:master-2022.05.21t04.23.55)
  • using GCC ARM compiler

What version of Mbed-os are you using (tag or sha) ?

  • mbed version 6.17.0

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

  • mbed cli 1 version included in docker container.

How is this defect reproduced ?

  • compile blinky program for NUMAKER_IOT_M487
@0xc0170
Copy link
Contributor

0xc0170 commented Mar 8, 2023

cc @ARMmbed/team-nuvoton

@cyliangtw
Copy link
Contributor

@matthewg276 , thank you for raising this issue.
NUC472 not include any capture header file, so NUC472 is fine.
About M487, this warning is fixed in PR #15388 .

@matthewg276
Copy link
Author

Confirming this has been fixed in latest master branch. Thank you!

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

No branches or pull requests

4 participants