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/GENERATED_AbseilCopts.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'absl/copts/GENERATED_AbseilCopts.cmake') 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" -- cgit v1.2.3