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

Reconcile implicit double / float promotion in math functions. #1199

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

FrauBluher
Copy link
Contributor

PR drops implicit conversion of floats and double literal values via the proposed changes. This resolves a bunch of warnings during compilation with all warnings enabled and prevents needless conversion of floats to doubles and back.

Lib continues to work as expected, though I'm utilizing this through a bespoke NonArduinoHAL in a Zephyr-based project.

PR also suppresses unused variable warning in situations where a var is used in print macros.

…assed function value types. Also suppress incorrect unused variable warnings when variables are used in logging macros.
@jgromes jgromes merged commit d3f9eaf into jgromes:master Aug 29, 2024
30 checks passed
@jgromes
Copy link
Owner

jgromes commented Aug 29, 2024

Thank you for the contribution! It seems a relatively minor change, and all looks good, so I merged it.

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