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 ESP8266 Compiler Warnings #474

Merged
merged 9 commits into from
Aug 21, 2023
Merged

Conversation

brentru
Copy link
Member

@brentru brentru commented Aug 16, 2023

This PR seeks to reduce ESP8266 builds failing by reducing the amount of compiler warnings produced such as:

  • Unused parameter
  • Virtual destructor
  • Comparison of integer expressions of different signedness

@brentru brentru requested a review from tyeth August 16, 2023 21:29
@brentru
Copy link
Member Author

brentru commented Aug 16, 2023

@tyeth Could you please review this PR? If it is OK, you can merge it in. I did touch some core API things (mostly marking unused parameters to avoid warnings) so it may require a functional test.

For any PRs failing on ESP8266: Merge this PR after and see if they work

Copy link
Contributor

Choose a reason for hiding this comment

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

One missed, see tyeth@9532d0b

Copy link
Contributor

Choose a reason for hiding this comment

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

Also a long vs uint32 warning, about sensor period.

Copy link
Contributor

@tyeth tyeth left a comment

Choose a reason for hiding this comment

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

@brentru Looks good, makes sense removing the i2c bus number too for now.
Suggested changes (can't seem to suggest or comment in non-touched files + areas)

tyeth@9532d0b

@brentru
Copy link
Member Author

brentru commented Aug 21, 2023

Implemented changes from tyeth@9532d0b in commit ece56dd

@brentru brentru merged commit c44beb9 into adafruit:main Aug 21, 2023
@brentru brentru deleted the fix-esp8266-warnings branch August 21, 2023 17:40
This was referenced Aug 21, 2023
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.

2 participants