Commit 7a326112 authored by Mirko Bonadei's avatar Mirko Bonadei Committed by Commit Bot

Fix diagnostic suppression when MSVC is used.

They don't work when MSVC is used:
https://ci.chromium.org/p/webrtc/builders/try/win_x64_msvc_dbg/20933?

Bug: None
Change-Id: I9a97f385bbfff53c616e0ff38d5a1784bddd7c01
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2274505Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Commit-Queue: Mirko Bonadei <mbonadei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#783935}
parent 09a1adeb
...@@ -351,7 +351,11 @@ absl_source_set("btree") { ...@@ -351,7 +351,11 @@ absl_source_set("btree") {
absl_source_set("inlined_vector_test") { absl_source_set("inlined_vector_test") {
testonly = true testonly = true
sources = [ "inlined_vector_test.cc" ] sources = [ "inlined_vector_test.cc" ]
cflags_cc = [ "-Wno-deprecated-declarations" ] if (is_win && !is_clang) {
cflags_cc = [ "/wd4996" ]
} else {
cflags_cc = [ "-Wno-deprecated-declarations" ]
}
deps = [ deps = [
":counting_allocator", ":counting_allocator",
":inlined_vector", ":inlined_vector",
......
...@@ -12,7 +12,9 @@ absl_source_set("type_traits") { ...@@ -12,7 +12,9 @@ absl_source_set("type_traits") {
absl_source_set("type_traits_test") { absl_source_set("type_traits_test") {
testonly = true testonly = true
sources = [ "type_traits_test.cc" ] sources = [ "type_traits_test.cc" ]
cflags_cc = [ "-Wno-unused-private-field" ] if (is_clang) {
cflags_cc = [ "-Wno-unused-private-field" ]
}
deps = [ deps = [
":type_traits", ":type_traits",
"//third_party/googletest:gtest", "//third_party/googletest:gtest",
......
...@@ -117,7 +117,9 @@ absl_source_set("compare") { ...@@ -117,7 +117,9 @@ absl_source_set("compare") {
# absl_source_set("variant_test") { # absl_source_set("variant_test") {
# testonly = true # testonly = true
# sources = [ "variant_test.cc" ] # sources = [ "variant_test.cc" ]
# cflags_cc = [ "-Wno-unused-function" ] # if (is_clang) {
# cflags_cc = [ "-Wno-unused-function" ]
# }
# deps = [ # deps = [
# ":variant", # ":variant",
# "//third_party/abseil-cpp/absl/base:config", # "//third_party/abseil-cpp/absl/base:config",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment