Disallow deprecated-declarations in non-test

Some deprecated functions have tests, so they must be exempted.
pull/8860/head
Tamir Duberstein 3 years ago
parent 2772f0d553
commit 9e675037dc
No known key found for this signature in database
GPG Key ID: 32E33EC15E1FEF3C
  1. 8
      BUILD

@ -50,7 +50,6 @@ COPTS = select({
"-DHAVE_ZLIB",
"-Woverloaded-virtual",
"-Wno-sign-compare",
"-Wno-deprecated-declarations",
],
})
@ -740,7 +739,12 @@ cc_test(
],
":msvc": [],
}),
copts = COPTS,
copts = COPTS + select({
":msvc": [],
"//conditions:default": [
"-Wno-deprecated-declarations",
],
}),
data = [
":test_plugin",
] + glob([

Loading…
Cancel
Save