From nobody Wed Nov 30 22:54:00 2022 X-Original-To: dev-commits-src-main@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 4NMvdh58M5z4jGcJ; Wed, 30 Nov 2022 22:54:00 +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 4NMvdh4fjsz4L3N; Wed, 30 Nov 2022 22:54:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669848840; 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=6sMFHTm6UW8bt3qUH8mhmUK2h3iSLiZL+TpYg7JOC7w=; b=vzIJY++7+o6a1PDFJ9CAOhniO2lRjIAUL6DYbm8qDrAqcT295Zh5qldgW2c9qPBWpWLoK3 xsSgJzByGKmBve93ZtffeYG+aCcdgkLvgM2AwPYvNb4EtwG7ZrbGjMqgdLRLXo0kJKszhl DEZM4mFbvr02jJbC17EAgfYB5YagB7SxzZAamPl2ZtgWt8NHb47wmiNRC2Yy+C6HRNtSfV 97lPdXcf2Cq9qQlNZiA/7AKVhd2A5vckQLLPi6/5+imchrhpjvJfoe7iRdreJprxlMgUGQ sN5+NsZ3M+AMOYvXb1PlVaGIuP2W3TLdp43MC2d2VZ2kLscv4Yiv9DtcWpxXfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669848840; 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=6sMFHTm6UW8bt3qUH8mhmUK2h3iSLiZL+TpYg7JOC7w=; b=X6bgqsOxBM3egMPzGxHW2QoaZKrb5CsXq1Gpk86oXVIXNicqrQ1QwdYiQAhoFhBtPMvJnM ip+aceo6xGJmqwXAsK71buhN3AUzpBuzYC1uaRCBI3vzXQRzWuZkgDHLbd3asHjkmI9jiz nIkH476OASpy1tOlL+Ov3r1dlMK2KS0yAj0yCBlekaFcFJD953c9y5xgOOUHeb0O6GNFUm HhE5laxE1zK/3AEwu3GEeLxM+6SPelHFZxEVtO36pjopCtb0/iieYyhdJer4ACOfzTUPVZ PRSnVbfndqe/c9EwfXsOvFZj4kxhUL6/8EElEfbhtu6yf4/6siA7pH+1tQV+pg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669848840; a=rsa-sha256; cv=none; b=JnhPYIjF7Po0HtVx1sy65uNliYuHpp7nFxWxcqC5yzc+j/6/yFSOmI0mNVTESYCxuQiqnI jxlvBeJ6+cRLgMAtH8iP0LWAFVs/e+bjCwmmfgZPJinVZNvckwZkNDed26lMXJXzvzZC+U 0QoW/Bbrq6lnw6sGxDNmDJ7Nocce+d2pMceu+ZkTUme5dCKWSsxXb/copYZWS7vGTYwjYh 7HT0CjryOX5kDPmfrrocrKk36KiDBg+dkGWMsT58BVa5KyNj2sh2Jv7r4e2dL+6HDlHSK9 vMyOmCJK/OFH/uUCiZs4h64uQ/58+P14UVYVlTH0u+wLMWMI96tg1Ey6//apMQ== 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 4NMvdh3jcpzF3X; Wed, 30 Nov 2022 22:54:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AUMs0AG056888; Wed, 30 Nov 2022 22:54:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AUMs0SZ056887; Wed, 30 Nov 2022 22:54:00 GMT (envelope-from git) Date: Wed, 30 Nov 2022 22:54:00 GMT Message-Id: <202211302254.2AUMs0SZ056887@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 442295c1fe84 - main - Silence GCC warnings when using libc++ headers. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 442295c1fe84b4dc3e4834acdbf4ede75affe3c4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=442295c1fe84b4dc3e4834acdbf4ede75affe3c4 commit 442295c1fe84b4dc3e4834acdbf4ede75affe3c4 Author: John Baldwin AuthorDate: 2022-11-30 22:50:35 +0000 Commit: John Baldwin CommitDate: 2022-11-30 22:53:29 +0000 Silence GCC warnings when using libc++ headers. GCC 12 raises warnings about literal operator suffixes not preceded by '_' in libc++ headers such as as it doesn't recognize libc++ headers being an implementation of the standard. GCC 12 also warns about clang-specific pragmas in . Disabling these warnings globally for all C++ code is not ideal, but is a better option than patching libc++ headers to ignore these warnings. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D37530 --- share/mk/bsd.sys.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 18aecfbcc110..42290e96f859 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -217,6 +217,14 @@ CWARNFLAGS+= -Wno-error=overflow .endif .endif +# GCC 12.1.0 +.if ${COMPILER_VERSION} >= 120100 +# These warnings are raised by headers in libc++ so are disabled +# globally for all C++ +CXXWARNFLAGS+= -Wno-literal-suffix \ + -Wno-error=unknown-pragmas +.endif + # GCC produces false positives for functions that switch on an # enum (GCC bug 87950) CWARNFLAGS+= -Wno-return-type