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 various unsigned to signed comparison warnings. (#17212) #18554

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

copybara-service[bot]
Copy link

Fix various unsigned to signed comparison warnings. (#17212)

GCC aggressively emit warnings when comparing unsigned and signed integer types, which causes failures under protobuf's -Werror default. We can fix these often by switching to iterators, but sometimes it's easiest to add a cast or switch a variable type.

Closes #17212

COPYBARA_INTEGRATE_REVIEW=#17212 from benjaminp:unsigned-size-comparison-warnings 4b3c9c2
FUTURE_COPYBARA_INTEGRATE_REVIEW=#17212 from benjaminp:unsigned-size-comparison-warnings 4b3c9c2

@copybara-service copybara-service bot force-pushed the test_680638328 branch 7 times, most recently from 1cf1990 to 913ca4e Compare October 2, 2024 00:27
GCC aggressively emit warnings when comparing unsigned and signed integer types, which causes failures under protobuf's -Werror default. We can fix these often by switching to iterators, but sometimes it's easiest to add a cast or switch a variable type.

Closes #17212

COPYBARA_INTEGRATE_REVIEW=#17212 from benjaminp:unsigned-size-comparison-warnings 4b3c9c2
PiperOrigin-RevId: 681232361
@copybara-service copybara-service bot merged commit 67de087 into main Oct 2, 2024
@copybara-service copybara-service bot deleted the test_680638328 branch October 2, 2024 01:03
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.

1 participant