From: Ryan VanderMeulen Date: Tue, 13 May 2026 00:00:00 +0000 Subject: Bug 1989886 - Suppress sign-compare in abseil CHECK_OP macros. r?#firefox-build-system-reviewers --- abseil-cpp/absl/log/internal/check_op.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/abseil-cpp/absl/log/internal/check_op.h b/abseil-cpp/absl/log/internal/check_op.h index 8d7ade4427e5..ba8a02aeb566 100644 --- a/abseil-cpp/absl/log/internal/check_op.h +++ b/abseil-cpp/absl/log/internal/check_op.h @@ -398,6 +398,13 @@ ABSL_LOG_INTERNAL_DEFINE_MAKE_CHECK_OP_STRING_EXTERN(const void*); MakeCheckOpString(v1, v2, exprtext) #endif +// Comparing mixed signed/unsigned values is intentional in CHECK_OP. A +// push/pop pragma does not interact correctly with macro definitions, so +// suppress without restoring. This header is transitively included by all +// protobuf-generated headers, so this pragma affects entire translation +// units that include any .pb.h file. +#pragma GCC diagnostic ignored "-Wsign-compare" + // Helper functions for `ABSL_LOG_INTERNAL_CHECK_OP` macro family. The // `(int, int)` override works around the issue that the compiler will not // instantiate the template version of the function on values of unnamed enum