From: Ryan VanderMeulen Date: Sun, 23 Aug 2026 13:55:24 -0400 Subject: Bug 1974813, Bug 1965053 - abseil-cpp compiler flag adjustments in absl.gni. Drops the prevent_unsafe_narrowing config, which chromium/build now includes automatically, and silences -Wcomma and -Wtautological-type-limit-compare. Those fire on deliberate comma expressions and on portability range checks that are tautological only on 64-bit; abseil does not enable either warning. --- abseil-cpp/absl.gni | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/abseil-cpp/absl.gni b/abseil-cpp/absl.gni index 3632789e941..8cb6e8b61d4 100644 --- a/abseil-cpp/absl.gni +++ b/abseil-cpp/absl.gni @@ -38,6 +38,20 @@ template("absl_source_set") { "//abseil-cpp:absl_define_config", ] + if (moz_webrtc_build) { + configs -= [ "//chromium/build/config/compiler:prevent_unsafe_narrowing" ] + + # Silence -Wcomma / -Wtautological-type-limit-compare spam from + # third-party abseil sources. See bug 1965053. + if (!defined(cflags_cc)) { + cflags_cc = [] + } + cflags_cc += [ + "-Wno-comma", + "-Wno-tautological-type-limit-compare", + ] + } + if (!defined(defines)) { defines = [] }