summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Derek Mauro <dmauro@google.com>2022-12-19 09:42:11 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2022-12-19 09:43:03 -0800
commitd2c0c9d06128f9b63ad2f1e5165a16cb8512cdf2 (patch)
treeb9aa72bd1d73b9e20a4f9210f3f1ccb827e7a25b
parentb1f792822b8d25e2f954b32dbcee0ddb89631fa9 (diff)
Adds -Wshorten-64-to-32 to LLVM warnings for non-test code since
Chromium builds Abseil with this warning. Tests are still built with -Wno-shorten-64-to-32 due to many pre-existing warnings. PiperOrigin-RevId: 496421954 Change-Id: I796ca444967474df0bdeb3fe82f85512dab11d8f
-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 99b72ab7..510b78eb 100644
--- a/absl/copts/GENERATED_AbseilCopts.cmake
+++ b/absl/copts/GENERATED_AbseilCopts.cmake
@@ -96,6 +96,7 @@ list(APPEND ABSL_LLVM_FLAGS
"-Wpointer-arith"
"-Wself-assign"
"-Wshadow-all"
+ "-Wshorten-64-to-32"
"-Wstring-conversion"
"-Wtautological-overlap-compare"
"-Wtautological-unsigned-zero-compare"
diff --git a/absl/copts/GENERATED_copts.bzl b/absl/copts/GENERATED_copts.bzl
index bfae4b70..f77e9077 100644
--- a/absl/copts/GENERATED_copts.bzl
+++ b/absl/copts/GENERATED_copts.bzl
@@ -97,6 +97,7 @@ ABSL_LLVM_FLAGS = [
"-Wpointer-arith",
"-Wself-assign",
"-Wshadow-all",
+ "-Wshorten-64-to-32",
"-Wstring-conversion",
"-Wtautological-overlap-compare",
"-Wtautological-unsigned-zero-compare",
diff --git a/absl/copts/copts.py b/absl/copts/copts.py
index b7f68c7d..47349529 100644
--- a/absl/copts/copts.py
+++ b/absl/copts/copts.py
@@ -57,6 +57,7 @@ ABSL_LLVM_FLAGS = [
"-Wpointer-arith",
"-Wself-assign",
"-Wshadow-all",
+ "-Wshorten-64-to-32",
"-Wstring-conversion",
"-Wtautological-overlap-compare",
"-Wtautological-unsigned-zero-compare",