From nobody Wed May 3 00:29:27 2023 X-Original-To: dev-commits-src-branches@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 4Q9yWD02bKz48N7K; Wed, 3 May 2023 00:29:28 +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 4Q9yWC4SCYz3lZ2; Wed, 3 May 2023 00:29:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683073767; 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=J6JEf9hzIQ4EFXWXg3VY6MQvdA+BQIo6J9IP4+JAmzw=; b=j7xAsoYNyMY18uikj9ekymgpqn0E7ag86m0VW9Re3WE7tWRjFOEpoNQ5g8e6sUPVtJlns9 orCLhgnHUOwZPHwmwbJa2kufjNSBiCmGuZaQCy9ttS6xToDICYs9EMURpWG7nxcOG4ga2V 5x0KCBWy3fFzeWMM1bUk+v/G1mPK9f1edBQCbdDM/gwjm+8ECIgJVLn39hfCxqewaU/zng LqMvTkBjC+3SCF5Z+f7I4qUjtgbe6+akRtTv84wQzM2tNRZ+LDrtT6dtcJJuwAc45s0mcS yDR1YYKaaAiuJevc2eViJXb/KA81pWfwPA7yPLvtU1taHMBysM3X6E14AGN7NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683073767; 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=J6JEf9hzIQ4EFXWXg3VY6MQvdA+BQIo6J9IP4+JAmzw=; b=LYiYu7SdkY9xYijr6v9A3oSeL5wzGGkJKII1z3g/8k9rlRfx4jZ3RZ3z+Y34T6W2QsgSIx RYfF3MabTeHYgHzGqV/ZG2asjGVbRXSHVja6BdP4VkbJ20rQRI2ELJG12g5nVrdAw+682/ ite04dXUu3Eps1YmNlG1XxPswFWFjhnI2oPReGeQwEse2B/Tu5yiK7rzuk9626FyMbqaTl Nc8sJnuhxQeuYwV/kmh7+j7IfNjZeSGAwVcYlYbte0Tkz+FKGsnsGQWGxWjyHtcW+2Qj5K PfeycFHcy64S3B5GsmNNOhqgkjzEQ/otOfzJvnOFWFHXlv7bromRdTi5DKk6IA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683073767; a=rsa-sha256; cv=none; b=NFY8IFwKtohIBsbuVUd0vXa2d8O/KO8pPcQSRU1zVGDGEn4+9/ErIdvEYnnBdZL8CU5FhD tawJMQvpL3EdBA3IENUfQQmsZ2R6rzN8hsushYLin5RyxlakO8666WHdfJ2D1kCkfWvegP jpnckl12psYO3Cm1afZltygzgy3I50bM9zkiEhB83g6Bq1cdy/PXPeBP4Xk3nuBsUVQ7KA /segjcmq6jVmo/HpY+hGXWpsdx1MWuplN/qeLZnPe22RzmY06XTVkUr8DUUIFfPXxwoaD0 EtEXPlX+SK7PzhWA8Qqec18uBd6DHvoFX0+JKcUHpDwZ7w9uusVegWgQskLp4Q== 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 4Q9yWC3NYyz189F; Wed, 3 May 2023 00:29:27 +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 3430TRXU071764; Wed, 3 May 2023 00:29:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3430TRee071763; Wed, 3 May 2023 00:29:27 GMT (envelope-from git) Date: Wed, 3 May 2023 00:29:27 GMT Message-Id: <202305030029.3430TRee071763@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: 80a1e92e4f54 - stable/13 - Silence GCC warnings when using libc++ headers. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: 80a1e92e4f5408b08e441dcbe811a83f9584241b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=80a1e92e4f5408b08e441dcbe811a83f9584241b commit 80a1e92e4f5408b08e441dcbe811a83f9584241b Author: John Baldwin AuthorDate: 2022-11-30 22:50:35 +0000 Commit: John Baldwin CommitDate: 2023-05-02 23:42:17 +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 (cherry picked from commit 442295c1fe84b4dc3e4834acdbf4ede75affe3c4) --- 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 ad359727c32f..4a75e17ed2b6 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -227,6 +227,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