Commit 733f179
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
PiperOrigin-RevId: 8535140941 parent 97c979b commit 733f179
1 file changed
+2
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
| 168 | + | |
172 | 169 | | |
173 | | - | |
174 | | - | |
175 | | - | |
| 170 | + | |
176 | 171 | | |
177 | 172 | | |
178 | 173 | | |
| |||
0 commit comments