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

Commit

Permalink
Disable signed/unsigned comparison warnings. (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
KeithMoyer authored Jan 6, 2021
1 parent 31fe48a commit afe0460
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions opencensus/copts.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@ load(
)

WERROR = ["-Werror=return-type", "-Werror=switch"]
WARN_FLAGS = ["-Wno-sign-compare"]

DEFAULT_COPTS = select({
"//opencensus:llvm_compiler": ABSL_LLVM_FLAGS + WERROR,
"//opencensus:llvm_compiler": ABSL_LLVM_FLAGS + WERROR + WARN_FLAGS,
"//opencensus:windows": ABSL_MSVC_FLAGS,
"//conditions:default": ABSL_GCC_FLAGS + WERROR,
"//conditions:default": ABSL_GCC_FLAGS + WERROR + WARN_FLAGS,
})

TEST_COPTS = DEFAULT_COPTS + select({
"//opencensus:llvm_compiler": ABSL_LLVM_TEST_FLAGS + WERROR,
"//opencensus:llvm_compiler": ABSL_LLVM_TEST_FLAGS + WERROR + WARN_FLAGS,
"//opencensus:windows": ABSL_MSVC_TEST_FLAGS,
"//conditions:default": ABSL_GCC_TEST_FLAGS + WERROR,
"//conditions:default": ABSL_GCC_TEST_FLAGS + WERROR + WARN_FLAGS,
})

0 comments on commit afe0460

Please sign in to comment.