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

added no-op statements to remove warnings #8

Merged
merged 1 commit into from
Nov 19, 2021
Merged

Conversation

boscs
Copy link
Contributor

@boscs boscs commented Nov 19, 2021

Hey!
First, great lib ! very simple, useful and intuitive.
If I understand correctly these 2 methods are meant to be empty.
if so, having those warning adds noise to gcc's output with -Wall :

.pio/libdeps/debug/TeensyID/TeensyID.cpp:119:28: warning: unused parameter 'uid' [-Wunused-parameter]
void kinetisUID(uint32_t *uid) {
^
.....
.pio/libdeps/debug/TeensyID/TeensyID.cpp:163:27: warning: unused parameter 'uuid' [-Wunused-parameter]
void teensyUUID(uint8_t *uuid) {
.....

I made a patch that adds no assembly but suppresses undue warnings.

Source for the method : https://stackoverflow.com/questions/1486904/how-do-i-best-silence-a-warning-about-unused-variables

having those warning adds noise to gcc's output :
Source for the method : https://stackoverflow.com/questions/1486904/how-do-i-best-silence-a-warning-about-unused-variables

Removing those two :
.pio/libdeps/debug/TeensyID/TeensyID.cpp:119:28: warning: unused parameter 'uid' [-Wunused-parameter]
  void kinetisUID(uint32_t *uid) {
                            ^
.pio/libdeps/debug/TeensyID/TeensyID.cpp:163:27: warning: unused parameter 'uuid' [-Wunused-parameter]
  void teensyUUID(uint8_t *uuid) {
@sstaub sstaub merged commit 86b00d1 into sstaub:master Nov 19, 2021
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

2 participants