blob: ad57dc5cb8159c50778aef47953c7bca913eff33 [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": [],