blob: 1658be4d35c22da9319626a6d1795e9b73682163 [file] [log] [blame]
James Kuszmaul3aabc1c2023-01-13 21:33:43 -08001diff --git a/BUILD.bazel b/BUILD.bazel
2index ac62251e..de652e5e 100644
3--- a/BUILD.bazel
4+++ b/BUILD.bazel
5@@ -101,7 +101,10 @@ cc_library(
6 copts = select({
7 ":qnx": [],
8 ":windows": [],
9- "//conditions:default": ["-pthread"],
10+ "//conditions:default": [
11+ "-pthread",
12+ "-Wno-unused-parameter",
13+ ],
14 }),
15 defines = select({
16 ":has_absl": ["GTEST_HAS_ABSL=1"],
17diff --git a/googlemock/test/BUILD.bazel b/googlemock/test/BUILD.bazel
18index d4297c80..b13ea948 100644
19--- a/googlemock/test/BUILD.bazel
20+++ b/googlemock/test/BUILD.bazel
21@@ -39,6 +39,10 @@ cc_test(
22 name = "gmock_all_test",
23 size = "small",
24 srcs = glob(include = ["gmock-*.cc"]) + ["gmock-matchers_test.h"],
25+ copts = [
26+ "-Wno-unused-parameter",
27+ "-Wno-unused-function",
28+ ],
29 linkopts = select({
30 "//:qnx": [],
31 "//:windows": [],