blob: 25d8cf4f5e88a7b50eaad3fe0436794bd9193a50 [file] [log] [blame]
diff --git a/BUILD.bazel b/BUILD.bazel
index ac62251e..de652e5e 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -101,7 +101,10 @@ cc_library(
copts = select({
":qnx": [],
":windows": [],
- "//conditions:default": ["-pthread"],
+ "//conditions:default": [
+ "-pthread",
+ "-Wno-unused-parameter",
+ ],
}),
defines = select({
":has_absl": ["GTEST_HAS_ABSL=1"],
diff --git a/googlemock/test/BUILD.bazel b/googlemock/test/BUILD.bazel
index d4297c80..a72c6991 100644
--- a/googlemock/test/BUILD.bazel
+++ b/googlemock/test/BUILD.bazel
@@ -39,6 +39,11 @@ cc_test(
name = "gmock_all_test",
size = "small",
srcs = glob(include = ["gmock-*.cc"]) + ["gmock-matchers_test.h"],
+ copts = [
+ "-Wno-unused-parameter",
+ "-Wno-unused-function",
+ "-Wno-ignored-qualifiers",
+ ],
linkopts = select({
"//:qnx": [],
"//:windows": [],
diff --git a/googletest/test/BUILD.bazel b/googletest/test/BUILD.bazel
index 1890b6ff..9bd00bd2 100644
--- a/googletest/test/BUILD.bazel
+++ b/googletest/test/BUILD.bazel
@@ -151,6 +151,9 @@ cc_test(
name = "gtest_unittest",
size = "small",
srcs = ["gtest_unittest.cc"],
+ copts = [
+ "-Wno-unused-but-set-variable",
+ ],
shard_count = 2,
deps = ["//:gtest_main"],
)