From owner-dev-commits-ports-all@freebsd.org Sat Oct 2 10:51:37 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 240C7679434; Sat, 2 Oct 2021 10:51:37 +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 4HM3gs0HR6z3hGS; Sat, 2 Oct 2021 10:51:37 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 DDB1511BFC; Sat, 2 Oct 2021 10:51:36 +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 192ApaCL043498; Sat, 2 Oct 2021 10:51:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 192Apaa9043497; Sat, 2 Oct 2021 10:51:36 GMT (envelope-from git) Date: Sat, 2 Oct 2021 10:51:36 GMT Message-Id: <202110021051.192Apaa9043497@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: 89909595ad9b - main - archivers/upx: fix build with clang 13 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 89909595ad9b51a93554a9ee9db62c066c46a8bd Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Oct 2021 10:51:37 -0000 The branch main has been updated by dim (src committer): URL: https://cgit.FreeBSD.org/ports/commit/?id=89909595ad9b51a93554a9ee9db62c066c46a8bd commit 89909595ad9b51a93554a9ee9db62c066c46a8bd Author: Dimitry Andric AuthorDate: 2021-09-27 18:46:16 +0000 Commit: Dimitry Andric CommitDate: 2021-10-02 10:48:13 +0000 archivers/upx: fix build with clang 13 During an exp-run for llvm 13 (see bug 258209), it turned out that archivers/upx fails to build with clang 13: p_wcle.cpp:739:27: error: variable 'n' set but not used [-Werror,-Wunused-but-set-variable] unsigned count,object,n,r; ^ 1 error generated. This is because clang 13 now has a -Wunused-but-set-variable warning similar to gcc's, and it is enabled under -Wall. The p_wcle.cpp file has two instances where the 'n' variable is used for debugging purposes, but the first instance is marked with UNUSED(n). The second is not, triggering this warning. Fix it by also marking the second instance with UNUSED(n). PR: 258394 Approved by: maintainer timeout (3 weeks) --- archivers/upx/files/patch-src_p__wcle.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/archivers/upx/files/patch-src_p__wcle.cpp b/archivers/upx/files/patch-src_p__wcle.cpp new file mode 100644 index 000000000000..509eda2f9b10 --- /dev/null +++ b/archivers/upx/files/patch-src_p__wcle.cpp @@ -0,0 +1,10 @@ +--- src/p_wcle.cpp.orig 2018-08-26 02:58:09 UTC ++++ src/p_wcle.cpp +@@ -763,6 +763,7 @@ void PackWcle::decodeEntryTable() + } + + //if (Opt_debug) printf("\n%d entries decoded.\n",n); ++ UNUSED(n); + + soentries = ptr_diff(p, ientries) + 1; + oentries = ientries;