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 -Wuseless-cast compiler warning for public headers #115

Merged
merged 2 commits into from
Aug 16, 2024

Conversation

graebm
Copy link
Contributor

@graebm graebm commented Aug 16, 2024

Issue #:
awslabs/aws-c-common#973

Research:
6 years ago, PR #5 made these constants uint32_t via a cast.

Description of changes:
Avoid -Wuseless-cast warnings, don't cast size_t to uint32_t on 32-bit platforms.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@graebm graebm merged commit 1b3825f into main Aug 16, 2024
31 checks passed
@graebm graebm deleted the header-useless-cast branch August 16, 2024 17:01
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