Skip to content

Fix -Wdeprecated-declarations suppression on Windows#25084

Closed
copybara-service[bot] wants to merge 0 commit intomainfrom
test_850860870
Closed

Fix -Wdeprecated-declarations suppression on Windows#25084
copybara-service[bot] wants to merge 0 commit intomainfrom
test_850860870

Conversation

@copybara-service
Copy link

Fix -Wdeprecated-declarations suppression on Windows

clang on Windows implements GNUC extensions, defines clang, but doesn't define GNUC, so one needs to handle both clang and GNUC cases. Fix this by using the existing PROTOBUF_IGNORE_DEPRECATION_* macros.

This upstreams (an improved version of) one of Chromium's patches: https://source.chromium.org/chromium/chromium/src/+/main:third_party/protobuf/patches/0049-deprecated-declarations-pragma.patch

@copybara-service copybara-service bot closed this Jan 8, 2026
@copybara-service copybara-service bot deleted the test_850860870 branch January 8, 2026 03:56
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.

0 participants