From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id tdI3Go5M1mqbODMAWB0awg (envelope-from ) for ; Mon, 19 Oct 2026 12:59:58 -0400 Received: by simark.ca (Postfix, from userid 112) id 3B0591E06B; Mon, 19 Oct 2026 12:59:58 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 504171E04E for ; Mon, 19 Oct 2026 12:59:57 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D62324BA23FC for ; Mon, 19 Oct 2026 16:59:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D62324BA23FC Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 526864BA23CB; Mon, 19 Oct 2026 16:59:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 526864BA23CB Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=efficios.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 526864BA23CB Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1792429174; cv=none; b=C8scM+nlN7zSfAoJwyAQl/Pe5mVAEf/6x5qT958qBmHv4GF5pOsuRaWMV+A764lMIJ6izZnTHNQUHyR0aaolwdajqDejS+m0L5SZMWZBxhAhAr56gLnblpH79FS+Kaz1PjdaoNFe5wB9OGNNaguopOc3XuUyIKMX4cyX/lLEgmc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1792429174; c=relaxed/simple; bh=wcySuQrwXPRbTyNy3cTqvdHQxb0iWThqwDTUeNrx/s0=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=o71OxdakLqJLuCwY3iILV0xEgnZ62qhV6e0M15ZJ2Rxjk+jCnfWx0Hed2YVpShGtbNwz9yEUT+Ji4TqfwIi/56ERlHrlBiXl/pUjMKQxLUcF0ZEV3XQgC0UzY7Mjlx0r/9TvVv/MnEBimjU8G+6zxp69JrSTcrhGjFUMe8zKeO4= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 526864BA23CB Received: by simark.ca (Postfix) id 2FF0A1E06B; Mon, 19 Oct 2026 12:59:32 -0400 (EDT) From: Simon Marchi To: gcc-patches@sourceware.org, gdb-patches@sourceware.org Cc: Simon Marchi , binutils@sourceware.org Subject: [PATCH 3/6] include/diagnostics.h: add DIAGNOSTIC_IGNORE_PARENTHESES Date: Mon, 19 Oct 2026 12:58:19 -0400 Message-ID: <20261019165929.792697-4-simon.marchi@efficios.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261019165929.792697-1-simon.marchi@efficios.com> References: <20261019165929.792697-1-simon.marchi@efficios.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org This is used by a following patch. Change-Id: I38609e84b9b092170d2da5589fb243f4acd8a2b4 Cc: binutils@sourceware.org --- include/diagnostics.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/diagnostics.h b/include/diagnostics.h index 364789d9af7d..8cae8ac7de86 100644 --- a/include/diagnostics.h +++ b/include/diagnostics.h @@ -63,6 +63,8 @@ # define DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL \ DIAGNOSTIC_IGNORE ("-Wformat-nonliteral") +# define DIAGNOSTIC_IGNORE_PARENTHESES DIAGNOSTIC_IGNORE ("-Wparentheses") + # if __has_warning ("-Wuser-defined-warnings") # define DIAGNOSTIC_IGNORE_USER_DEFINED_WARNINGS \ DIAGNOSTIC_IGNORE ("-Wuser-defined-warnings") @@ -96,6 +98,8 @@ # define DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL \ DIAGNOSTIC_IGNORE ("-Wformat-nonliteral") +# define DIAGNOSTIC_IGNORE_PARENTHESES DIAGNOSTIC_IGNORE ("-Wparentheses") + # if __GNUC__ >= 5 # define DIAGNOSTIC_IGNORE_UNUSED_BUT_SET_VARIABLE \ DIAGNOSTIC_IGNORE ("-Wunused-but-set-variable") @@ -142,6 +146,10 @@ # define DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL #endif +#ifndef DIAGNOSTIC_IGNORE_PARENTHESES +# define DIAGNOSTIC_IGNORE_PARENTHESES +#endif + #ifndef DIAGNOSTIC_IGNORE_USER_DEFINED_WARNINGS # define DIAGNOSTIC_IGNORE_USER_DEFINED_WARNINGS #endif -- 2.56.0