summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Derek Mauro <dmauro@google.com>2022-12-19 10:47:26 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2022-12-19 10:48:17 -0800
commitdbc61b490c5c259df33af59f9922a7224341397b (patch)
tree75b29afed03f35ccf069d10ee4f9a02fef28cfd3
parentd2c0c9d06128f9b63ad2f1e5165a16cb8512cdf2 (diff)
Adds -Wsign-conversion to LLVM warnings for non-test code since
Chromium builds Abseil with this warning. Tests are still built with -Wno-sign-conversion due to many pre-existing warnings. PiperOrigin-RevId: 496438882 Change-Id: Ic47c893e5289d3d45cd5717ba02d5499a3b346fa
-rw-r--r--absl/copts/GENERATED_AbseilCopts.cmake1
-rw-r--r--absl/copts/GENERATED_copts.bzl1
-rw-r--r--absl/copts/copts.py1
3 files changed, 3 insertions, 0 deletions
diff --git a/absl/copts/GENERATED_AbseilCopts.cmake b/absl/copts/GENERATED_AbseilCopts.cmake
index 510b78eb..04e7b444 100644
--- a/absl/copts/GENERATED_AbseilCopts.cmake
+++ b/absl/copts/GENERATED_AbseilCopts.cmake
@@ -97,6 +97,7 @@ list(APPEND ABSL_LLVM_FLAGS
"-Wself-assign"
"-Wshadow-all"
"-Wshorten-64-to-32"
+ "-Wsign-conversion"
"-Wstring-conversion"
"-Wtautological-overlap-compare"
"-Wtautological-unsigned-zero-compare"
diff --git a/absl/copts/GENERATED_copts.bzl b/absl/copts/GENERATED_copts.bzl
index f77e9077..84f4bffc 100644
--- a/absl/copts/GENERATED_copts.bzl
+++ b/absl/copts/GENERATED_copts.bzl
@@ -98,6 +98,7 @@ ABSL_LLVM_FLAGS = [
"-Wself-assign",
"-Wshadow-all",
"-Wshorten-64-to-32",
+ "-Wsign-conversion",
"-Wstring-conversion",
"-Wtautological-overlap-compare",
"-Wtautological-unsigned-zero-compare",
diff --git a/absl/copts/copts.py b/absl/copts/copts.py
index 47349529..06eeb67b 100644
--- a/absl/copts/copts.py
+++ b/absl/copts/copts.py
@@ -58,6 +58,7 @@ ABSL_LLVM_FLAGS = [
"-Wself-assign",
"-Wshadow-all",
"-Wshorten-64-to-32",
+ "-Wsign-conversion",
"-Wstring-conversion",
"-Wtautological-overlap-compare",
"-Wtautological-unsigned-zero-compare",