From nobody Fri Jun 30 07:18:16 2023 X-Original-To: dev-commits-ports-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 4Qsmr94GRBz4kp0v; Fri, 30 Jun 2023 07:18:17 +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 4Qsmr85x27z3kNJ; Fri, 30 Jun 2023 07:18:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688109496; 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=D0PZeXSTTdqgkF88ewSHbIs7QOZ66HWPxGXZqam1t1Y=; b=nhWR04Mt0/aMhE2pM0SFNS/PGJUo14QyYoAIeqOO1MurW0NwY9earjxNlEUin8cgS9hckO Ff4cPU/+fP6XWe93NlfTYpRBFvIJSZ15A30DmUTvdMZ/Va5MN42cAlq2k0rPE0QunxUoQn qw69dzAVhpTf7I1TybJcv6ufKoZcfmAKEXZY42eZjJOBrDZFm6cUlz5qfqdF9F1x8Yk1RB l7cUEvC0IqGChsPlxT042ess7CrAYJ5mFGNZFNgT9weeP2oHILWG0kRmfm8rb417MZKylv melsA6YRgOJF4N3km1KALdTCsrmCwc8eAR3BUP79P3gGwmv0tHOtA3SzVrrL+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688109496; 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=D0PZeXSTTdqgkF88ewSHbIs7QOZ66HWPxGXZqam1t1Y=; b=RRNv/uSjg4q4YUWg2PnkO8zaGLCvJjaq3uGIECGZhzYOvsk2iR2ldOSFMwRkSgzF1FWTs0 lZI4WY7Y27epVDpskRQ/3l+uhHLK2bN04/F0XbCO6x0n9gCg5NvNW7BI9so9QvYRLDhwrM rf3fYfQ1DQegmNvM0uAEgAeNOVHa9vpPm4duis4P0mO+vqcJRI+hhwpBDpQ2pNbEo3K6Zy zzeSQldwhAgtNrmT1WenhrXYxmWORwaWm76J6Aid4Rnia13KIr9AI3RD043Oyvtl6D8Yf8 wq+s3eQbeW8kKQ1r8sbD1YYESM2V9E3zKrKtJp++Rh7riUDbMSih2RUBks3/Tw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688109496; a=rsa-sha256; cv=none; b=bkTUbpNNqs67PjwLXOH8UgiVK2787tIIZ/pELzMQgIVEg82BludkFWZRYb+zMZ+3TCV3iX a3en/wAOF7VjSfmX1dQglR9oAEIfA1ztmWwb+D8LZkO2IHuf0tHLsKIPoNFSXExfFwCSFQ 65KoBFNb8fcls1s75P0r0mpynMFihU0XFzQPDklpA0Ict3/0n1OqbZd0QPmLbPaGScwlt0 wXy8HViDVMghpw1+S4MzcZXuJ+brUVUWt76D+wmNb8h3nOdYRUt36K5rBusFRSVG2OzG/V cqO6w2zdC1Wtt9Y3wi49Xpfv+8dOXg1h5I2uvlYDaQqJK8PBr/+BwGhHzlitaA== 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 4Qsmr85112zpkL; Fri, 30 Jun 2023 07:18:16 +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 35U7IGLQ064794; Fri, 30 Jun 2023 07:18:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 35U7IG8B064793; Fri, 30 Jun 2023 07:18:16 GMT (envelope-from git) Date: Fri, 30 Jun 2023 07:18:16 GMT Message-Id: <202306300718.35U7IG8B064793@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: 7e55bfd508b9 - main - net-mgmt/ipv6calc: Fix build with Clang 15 and remove the workaround List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: 7e55bfd508b9e90a08978d6bded5b63124f86284 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=7e55bfd508b9e90a08978d6bded5b63124f86284 commit 7e55bfd508b9e90a08978d6bded5b63124f86284 Author: Po-Chuan Hsieh AuthorDate: 2023-06-30 07:02:08 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-06-30 07:02:08 +0000 net-mgmt/ipv6calc: Fix build with Clang 15 and remove the workaround libipv6calc_db_wrapper.c:2901:23: error: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] ret = get_array_row(i, &value_first_00_31, &value_first_32_63, &value_last_00_31, &value_last_32_63); ^ 1 error generated. --- net-mgmt/ipv6calc/Makefile | 8 +------- net-mgmt/ipv6calc/files/patch-clang15 | 11 +++++++++++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/net-mgmt/ipv6calc/Makefile b/net-mgmt/ipv6calc/Makefile index 0f603565f941..656913f69c61 100644 --- a/net-mgmt/ipv6calc/Makefile +++ b/net-mgmt/ipv6calc/Makefile @@ -20,13 +20,7 @@ GNU_CONFIGURE= yes SHEBANG_FILES= tools/* -.include - -.if ${OPSYS} == FreeBSD && ((${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000) || ${OSVERSION} >= 1400079) -CFLAGS+= -Wno-error=deprecated-non-prototype -.endif - post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* -.include +.include diff --git a/net-mgmt/ipv6calc/files/patch-clang15 b/net-mgmt/ipv6calc/files/patch-clang15 new file mode 100644 index 000000000000..561ba8c5dd68 --- /dev/null +++ b/net-mgmt/ipv6calc/files/patch-clang15 @@ -0,0 +1,11 @@ +--- databases/lib/libipv6calc_db_wrapper.c.orig 2023-06-12 07:11:54 UTC ++++ databases/lib/libipv6calc_db_wrapper.c +@@ -2778,7 +2778,7 @@ long int libipv6calc_db_wrapper_get_entry_generic( + const uint32_t lookup_key_00_31, // lookup key MSB + const uint32_t lookup_key_32_63, // lookup key LSB + void *data_ptr, // pointer to DB data in case of IPV6CALC_DB_LOOKUP_DATA_PTR_TYPE_BDB, otherwise NULL +- int (*get_array_row)() // function to get array row ++ int (*get_array_row)(int, uint32_t*, uint32_t*, uint32_t*, uint32_t*) // function to get array row + ) { + + int retval = -1;