From nobody Sat Nov 30 19:09:07 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y102q6ND4z5fVTd; Sat, 30 Nov 2024 19:09:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y102q4p4Kz4FJ3; Sat, 30 Nov 2024 19:09:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732993747; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2Z1y+dpMXcxdE2j3IZPFjAYc0m4ORHI54Ztyf5TLEa0=; b=ClxaQTqqjNQmCiNuQKYsOWk1vGEgIn4DuVsGMguhbYGo3boqFw4+72PG9EPmu+lRcGXsvA 4/Q/O3vXWXIMHfw4BrVDQ60x6esPPW0Vlsi+gRUJSRbvFbzanZDk3aZ6XXk7HjGTtTtz3I vTbJJOKuvcSkAMsJS3z0j5VPmCB6tW14cCU2E/wGe1zADov4CaimFrR7T2hC3tPZ0Ckb4X 0idD0Li2hnUBNx9feOSWjp9ihasiCYRJJ4UV4Nw45P07fz6LHDZ2Qwfq1YbUKzVOnB7rqT XaVmTr/+JeJ1/3IY2kzuiWFTdXCYu6AhyvGAfZvPgfcKpur1LAQNbTENEI2RhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732993747; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2Z1y+dpMXcxdE2j3IZPFjAYc0m4ORHI54Ztyf5TLEa0=; b=TcWQ77dqNmQsL6vtbMbrg11AZIQ+RwqYQPo+7AYrYRzJ6YDs7k5DuN8UPx+oenrt5ctvZ5 Owq8rrhOpE91OAhpZTspnVq0dfrB/ysGWDOzrlvkb1/o5gE3x7aMI4s65u0Bg9kDymqq9v gwzLsY8lMtagwm30ZiEb2I2qz/mKKrXtfdgN2atalIZC7bKqOHH2egaiK9ix11Ztd9xTTn ct/Nb+oS+peTO3kOHNeROsOztDtaDpkn26yPaXM8+XqZtXYEorIsLcU/mEzLKqz/n05jKe 9/Gb0PkcKe2Yhz7hQoc7zDq3FypvA5FVqftJFvNUWxfUVIpaPraKjMng8qpm2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732993747; a=rsa-sha256; cv=none; b=WvOWn8Qe0f3rR7xZxya/NHVQdFmehTZqF3PRjSMLguBi3vrZ6qYW3Wo24d+m/Eq0wTtbja GBah+FcrCiH1rkjWShf5sm23FQ3dS1NIBEzscX+fAb/w8ap2OhUGq41+mUXe0/ciG8QgaV RVXx2vpb3br+3T8QSf8JQ/+QFWUAeHraJpTDgwAKJRwkTS+tyy+q9IC2gmGlSzdhMiHjoo RDxKZYv6zxLnmGIBvnhb8hf6yy8WzAkVfi7y3r9lkQfEDyopDvGSct0Ogn9fdy+VyBUX51 b4rVnlo1Eyp2QzX8KWPsPgv0gfMh5gCdbMHZsY+NZLr0jVCWgg7x/78Dpci84A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y102q4PxszKsT; Sat, 30 Nov 2024 19:09:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AUJ97cM097239; Sat, 30 Nov 2024 19:09:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AUJ97n3097236; Sat, 30 Nov 2024 19:09:07 GMT (envelope-from git) Date: Sat, 30 Nov 2024 19:09:07 GMT Message-Id: <202411301909.4AUJ97n3097236@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: da72456591ee - stable/13 - bsd.sys.mk: Disable -Wdangling-reference for GCC 13+ List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: da72456591eee5b6bea590080a05f593b118a6a9 Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=da72456591eee5b6bea590080a05f593b118a6a9 commit da72456591eee5b6bea590080a05f593b118a6a9 Author: John Baldwin AuthorDate: 2023-11-15 02:35:04 +0000 Commit: John Baldwin CommitDate: 2024-11-30 18:49:27 +0000 bsd.sys.mk: Disable -Wdangling-reference for GCC 13+ GCC raises this warning for libc++'s istream. It raises false positives in other cases as well (GCC bugs 109640, 109642, 109671). Warning from : /usr/include/c++/v1/istream:1464:34: error: possibly dangling reference to a temporary [-Werror=dangling-reference] 1464 | const ctype<_CharT>& __ct = std::use_facet >(__is.getloc()); | ^~~~ /usr/include/c++/v1/istream:1464:71: note: the temporary was destroyed at the end of the full expression 'std::__1::use_facet >(std::__1::ios_base::getloc() const())' 1464 | const ctype<_CharT>& __ct = std::use_facet >(__is.getloc()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D42579 (cherry picked from commit 28fc837b70372a1a99c28ef4f74325bce711960a) --- share/mk/bsd.sys.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index d28bf09f2cb2..e537d7f045c4 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -243,6 +243,13 @@ CXXWARNFLAGS+= -Wno-literal-suffix \ -Wno-error=unknown-pragmas .endif +# GCC 13.1.0 +.if ${COMPILER_VERSION} >= 130100 +# These warnings are raised by headers in libc++ so are disabled +# globally for all C++ +CXXWARNFLAGS+= -Wno-dangling-reference +.endif + # GCC produces false positives for functions that switch on an # enum (GCC bug 87950) CWARNFLAGS+= -Wno-return-type