Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit afe0460

Browse files
authored
Disable signed/unsigned comparison warnings. (#454)
1 parent 31fe48a commit afe0460

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

opencensus/copts.bzl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,16 @@ load(
3232
)
3333

3434
WERROR = ["-Werror=return-type", "-Werror=switch"]
35+
WARN_FLAGS = ["-Wno-sign-compare"]
3536

3637
DEFAULT_COPTS = select({
37-
"//opencensus:llvm_compiler": ABSL_LLVM_FLAGS + WERROR,
38+
"//opencensus:llvm_compiler": ABSL_LLVM_FLAGS + WERROR + WARN_FLAGS,
3839
"//opencensus:windows": ABSL_MSVC_FLAGS,
39-
"//conditions:default": ABSL_GCC_FLAGS + WERROR,
40+
"//conditions:default": ABSL_GCC_FLAGS + WERROR + WARN_FLAGS,
4041
})
4142

4243
TEST_COPTS = DEFAULT_COPTS + select({
43-
"//opencensus:llvm_compiler": ABSL_LLVM_TEST_FLAGS + WERROR,
44+
"//opencensus:llvm_compiler": ABSL_LLVM_TEST_FLAGS + WERROR + WARN_FLAGS,
4445
"//opencensus:windows": ABSL_MSVC_TEST_FLAGS,
45-
"//conditions:default": ABSL_GCC_TEST_FLAGS + WERROR,
46+
"//conditions:default": ABSL_GCC_TEST_FLAGS + WERROR + WARN_FLAGS,
4647
})

0 commit comments

Comments
 (0)