From d2c0c9d06128f9b63ad2f1e5165a16cb8512cdf2 Mon Sep 17 00:00:00 2001 From: Derek Mauro Date: Mon, 19 Dec 2022 09:42:11 -0800 Subject: 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 --- absl/copts/copts.py | 1 + 1 file changed, 1 insertion(+) (limited to 'absl/copts/copts.py') 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", -- cgit v1.2.3