From nobody Wed Jan 03 17:50:02 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 4T4y0p5Vxhz56MPT; Wed, 3 Jan 2024 17:50:02 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T4y0p4S10z4rhy; Wed, 3 Jan 2024 17:50:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704304202; 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=ntoifN2hnWmkarADUF8XQKK0D/i5cciV+O7C4Wu3IyI=; b=cGPRHLz8MCiywqQ/ZVd3YER3eGAwRmu0mAqvgT+53nrx4VvkKC5oh5RNwRWUIccC99zCHW sAlFangiG59TRVm11fia4AjtoAEBReevus8PGNLpMMDVsdssW8kCODgQ2d7FyGUkIWprxF 85tpKK+LuGzcjm/ufp6bihlDoYpVE/uCJrUqbKiVrUyQYoQ3FCmINFsAN7FIZPXLFhIqhY Lc4vhA+xRFcST4DKP7/LOaKtq8IdrVnODFhQ5IRWh2VSnRUB3hZ10pw6SEZmWWfAiq102L tG4awazu1Afk15NnM1VtJAJNeOYD9LcOc01pe+PoTvduGuboAowA0on3Taqg0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704304202; 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=ntoifN2hnWmkarADUF8XQKK0D/i5cciV+O7C4Wu3IyI=; b=qWNFhjUN3y40j5ad7NvIHld90SZ4kSRX8JC2MHkQzjSi4U8OUu8AWAAxi4IsK3/BRI2mkZ sZi8QvqAMKCEytVvrrEL5V8+zCuwXusK7rKSAU55IYyuKZB0NJNQnZKUrDcd3vqH91YGy1 jBbcxs2LZ2Duf1yfDsdxlMJM9NVJPHrTpyNGKy/AlQpJ7PZNvcdK55HD+KwcWkSZr689Q7 3Old92SIplNBTwJP35EOGtwV12/QvWvB0P5K9FFE3wp9fpJoFYJKnLC7bCi/+EnGqIOEMP Kh8lP0sIA4M4G60v/5Y19pKl4kCd3eCPke5XFt1qFXULP2TbNEoOvtbQIUHqcw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704304202; a=rsa-sha256; cv=none; b=PGNvsfRL+SFm/xGVUbPD4+fELqM9eUlSb2FKy5KJo8/zxif5TiPsm8tvQlOXK5zQjtXln4 C1vKJQ/z/qwMRkHVNNxjGVRh6dHn4EjloqwdGUJElSexbE/BDfu73j6kWU7KaJo6lBLika vhzC6xy5k89XEEUj1sEthU6dAmjd9fyz/fj42odY6ZWigYB+SY3JWE0nCmlnz5/5goaz0Y bv314gvCMB7+8XkkMsX4LWSNSl/5U4j0HfQLqWVAY/yC/H9ds8Wb46uNMSpOH3aQsBjvh0 Afo0J/N22tTjMYjTN0euaeEIutCWEamHF821mZju6IeusumiKae1l95AqRTEpg== 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 4T4y0p3PfsztvM; Wed, 3 Jan 2024 17:50:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 403Ho2x0036925; Wed, 3 Jan 2024 17:50:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 403Ho21m036920; Wed, 3 Jan 2024 17:50:02 GMT (envelope-from git) Date: Wed, 3 Jan 2024 17:50:02 GMT Message-Id: <202401031750.403Ho21m036920@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: c2d4e8d4e9a7 - stable/14 - 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/14 X-Git-Reftype: branch X-Git-Commit: c2d4e8d4e9a7b217e25fa9a20c560ed1e98ba236 Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c2d4e8d4e9a7b217e25fa9a20c560ed1e98ba236 commit c2d4e8d4e9a7b217e25fa9a20c560ed1e98ba236 Author: John Baldwin AuthorDate: 2023-11-15 02:35:04 +0000 Commit: John Baldwin CommitDate: 2024-01-03 17:43:48 +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 2b1a3e103b89..7d0e632973e4 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -234,6 +234,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