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: avoid warnings with MSVC (#12762) #12775

Merged
merged 1 commit into from
May 12, 2023
Merged

Conversation

fowles
Copy link
Contributor

@fowles fowles commented May 12, 2023

In both cases a size_t was being converted to a uint32_t. These headers are used from application code, or at least from generated code, and the application may be compiling with more warnings enabled than normal.

Closes #12762

COPYBARA_INTEGRATE_REVIEW=#12762 from coryan:fix-avoid-warnings-with-MSVC 5ba6b5d PiperOrigin-RevId: 531506224

In both cases a `size_t` was being converted to a `uint32_t`. These headers are used from application code, or at least from generated code, and the application may be compiling with more warnings enabled than normal.

Closes protocolbuffers#12762

COPYBARA_INTEGRATE_REVIEW=protocolbuffers#12762 from coryan:fix-avoid-warnings-with-MSVC 5ba6b5d
PiperOrigin-RevId: 531506224
@fowles fowles added 🅰️ safe for tests Mark a commit as safe to run presubmits over back-port Cherrypick PRs to release branches 23.x labels May 12, 2023
@fowles fowles marked this pull request as ready for review May 12, 2023 15:21
@fowles fowles requested a review from a team as a code owner May 12, 2023 15:21
@fowles fowles requested review from ericsalo and removed request for a team May 12, 2023 15:21
@fowles fowles added 🅰️ safe for tests Mark a commit as safe to run presubmits over and removed 🅰️ safe for tests Mark a commit as safe to run presubmits over labels May 12, 2023
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label May 12, 2023
@fowles fowles merged commit b0e0c59 into protocolbuffers:23.x May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
23.x back-port Cherrypick PRs to release branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants