Skip to content

cleanup: reduce warnings on MSVC builds#15397

Merged
1 commit merged into
mainfrom
test_597528512
Jan 11, 2024
Merged

cleanup: reduce warnings on MSVC builds#15397
1 commit merged into
mainfrom
test_597528512

Conversation

@copybara-service

Copy link
Copy Markdown

cleanup: reduce warnings on MSVC builds

Protobuf sets the /utf-8 flag in the linker, but this is a compiler flag 1. The linker emits a warning, polluting the logs for all downstream projects 2 with many LINK : warning LNK4044: unrecognized option '/utf-8'; ignored lines.

Footnotes

  1. https://learn.microsoft.com/en-us/cpp/build/reference/utf-8-set-source-and-executable-character-sets-to-utf-8?view=msvc-170

  2. For an example, see this build

Protobuf sets the `/utf-8` flag in the linker, but this is a compiler flag [^1]. The linker emits a warning, polluting the logs for all downstream projects [^2] with many `LINK : warning LNK4044: unrecognized option '/utf-8'; ignored` lines.

[^1]: https://learn.microsoft.com/en-us/cpp/build/reference/utf-8-set-source-and-executable-character-sets-to-utf-8?view=msvc-170
[^2]: For an example, see [this build](https://github.com/googleapis/google-cloud-cpp/actions/runs/7484447749/job/20371331322#step:5:4146)

PiperOrigin-RevId: 597570083
@copybara-service copybara-service Bot closed this pull request by merging all changes into main in c988f9c Jan 11, 2024
@copybara-service copybara-service Bot deleted the test_597528512 branch January 11, 2024 17:15
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