From nobody Mon Jul 31 16:45:47 2023 X-Original-To: dev-commits-ports-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 4RF3zr0fGCz4pGbl; Mon, 31 Jul 2023 16:46:47 +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 4RF3yg5LlDz3GFf; Mon, 31 Jul 2023 16:45:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690821947; 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=qLMiOIo2KlhzD/c5u+x+WN4FEujlTsxYdpTtidm53ik=; b=MlNU0HdiwxQPHd7mRFCinGVTTq8Msgco+2ah5C90eeDYtHIDAeLpQji2XQ9EtPumF9DDEv QjoLHjwO5xOw4mtcBW/ziWSdSSkelvSiidyHfdVoVMWrWLwlgczGmFixr497KUyZkSXpG9 j2nVJ5hQMHP3dOWIx42V30PWZOjOZXPygD6Xr1RR5ZZCwfTtIpTlJxMq82YsIl3mIAxvUU cVoi4/XqANcxlgcgoHSeizLV5yPZ4NNHXlgUN395lyLXDrIX2xcQqveSX9OaI4cEqplvta 5J1Lu5IJ+M7aoDpUsuY20H47pEMHMxDhcylDAAc0n3huHVOsNQTQmhYqJlM4dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690821947; 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=qLMiOIo2KlhzD/c5u+x+WN4FEujlTsxYdpTtidm53ik=; b=aWXA0xd8YHWJrqpomCeaG/SznoyD0uMvm+/ElG0oEe+fdQWY4SHSvZizRxL70dh3Zj+4sS mGiOqr3yjHeVZ9fDrpgNcSbB8yBSqA3orv9WRcnUOl0VGvbp0NaPI3R6GfQ1ZBNr98zNnl nWYedUnUKomnf7E6g7kgVawXdxUeF6OMO4SWV55gdg8DfUmoTq0KmUCinXklfg3N4dBeDC FRlBkFXQBLlyQaHfynsrfWaG6HPDbHfl3yrJzPijMLtJ35zeD2wngehL9oIoxrnjXtnCLQ zRNfYVuRhGnLxtCAKAbOCfxKqZ/W/6I5MzDOSZye9SbhpOCKNQz+f3K4ZEKpow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690821947; a=rsa-sha256; cv=none; b=tDnj58P3EDQKnZuD6chQNn0lDZESixsJHVjDmdhTgI/SvLQo13SRSgoTxhRgG3H4GKC98C 1u2/zT2OjWQUq/gPm00eD+dlSrTJDZkqJDQR1H7MAF+05bbW5B84KAzUZXdhRDMz6CMyr8 eCU9bpWEHp0+BbKTHQU+6wlbgUWA/fs3TBBBo2Chs83qwrWVeckAm5vJS/LTZhGbzjeQFm GRh7do0hVRA6GySBT4PQn1I2h7fYYD8je+obW3dh+cQPkqg1h/Q4Xfc3nAubLQeACDzbyq dJMEJu3mGd4o4HluEZ36BLZxPvDcKslhejiiNtTpJ7/SXtiW+aGxoPxjKa/Blw== 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 4RF3yg3nRFz13GC; Mon, 31 Jul 2023 16:45:47 +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 36VGjlRH079279; Mon, 31 Jul 2023 16:45:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36VGjl62079278; Mon, 31 Jul 2023 16:45:47 GMT (envelope-from git) Date: Mon, 31 Jul 2023 16:45:47 GMT Message-Id: <202307311645.36VGjl62079278@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: b5c1ed98827f - main - net/xprobe: Fix build with Clang 16+ List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b5c1ed98827f5cb9bbf1bc2d4c8fccc93c0ec538 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=b5c1ed98827f5cb9bbf1bc2d4c8fccc93c0ec538 commit b5c1ed98827f5cb9bbf1bc2d4c8fccc93c0ec538 Author: Po-Chuan Hsieh AuthorDate: 2023-07-31 16:30:26 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-07-31 16:39:51 +0000 net/xprobe: Fix build with Clang 16+ misc.cc:21:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register long sum; /* assumes long == 32 bits */ ^~~~~~~~~ misc.cc:23:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register u_short answer; /* assumes u_short == 16 bits */ ^~~~~~~~~ 2 errors generated. --- net/xprobe/files/patch-libs-external_USI++_src_misc.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/net/xprobe/files/patch-libs-external_USI++_src_misc.cc b/net/xprobe/files/patch-libs-external_USI++_src_misc.cc index d66982ee3eda..259786c18b4e 100644 --- a/net/xprobe/files/patch-libs-external_USI++_src_misc.cc +++ b/net/xprobe/files/patch-libs-external_USI++_src_misc.cc @@ -8,3 +8,15 @@ #include #include #include +@@ -17,9 +18,9 @@ unsigned short + in_cksum (unsigned short *ptr, int nbytes, bool may_pad) + { + +- register long sum; /* assumes long == 32 bits */ ++ long sum; /* assumes long == 32 bits */ + u_short oddbyte; +- register u_short answer; /* assumes u_short == 16 bits */ ++ u_short answer; /* assumes u_short == 16 bits */ + + + /* For psuedo-headers: odd len's require