Differential Revision: https://phabricator.services.mozilla.com/D309457
31 lines
950 B
Diff
31 lines
950 B
Diff
From: Ryan VanderMeulen <rvandermeulen@mozilla.com>
|
|
Date: Mon, 29 Jun 2026 13:07:08 -0400
|
|
Subject: Bug 1965053 - silence -Wcomma and -Wtautological-type-limit-compare
|
|
warnings in the abseil build. r?mjf
|
|
|
|
---
|
|
abseil-cpp/absl.gni | 10 ++++++++++
|
|
1 file changed, 10 insertions(+)
|
|
|
|
diff --git a/abseil-cpp/absl.gni b/abseil-cpp/absl.gni
|
|
index 9e1c844bf3b..8cb6e8b61d4 100644
|
|
--- a/abseil-cpp/absl.gni
|
|
+++ b/abseil-cpp/absl.gni
|
|
@@ -40,6 +40,16 @@ template("absl_source_set") {
|
|
|
|
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)) {
|