Skip to content

Commit 81c25d9

Browse files
pcccopybara-github
authored andcommitted
Disable deprecation warning
Some of our dependencies use declarations that are deprecated in other projects. Since these warnings are noisy, aren't relevant to us as consumers, and will usually be fixed by an update, disable them. PiperOrigin-RevId: 906625258 Change-Id: Ic34da7296fda1729c1c22fd4045059ca3963c436
1 parent 168bce0 commit 81c25d9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.bazelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ build --copt='-funsigned-char'
4242
build --copt='-fno-strict-aliasing'
4343
build --copt='-fno-omit-frame-pointer'
4444

45+
# Some of our dependencies use declarations that are deprecated in other
46+
# projects. Since these warnings are noisy, aren't relevant to us as
47+
# consumers, and will usually be fixed by an update, disable them.
48+
build --copt='-Wno-deprecated-declarations'
49+
build --host_copt='-Wno-deprecated-declarations'
50+
4551
# Compile for the native architecture. This can be overridden with
4652
# --config=haswell, --config=westmere or --copt=-march=xyz
4753
build --copt='-march=native'

0 commit comments

Comments
 (0)