Re: git: b8c4bfe660b3 - main - sysutils/reptyr: Address LLVM 13 build failure
- In reply to: Kubilay Kocak : "Re: git: b8c4bfe660b3 - main - sysutils/reptyr: Address LLVM 13 build failure"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Dec 2021 01:20:15 UTC
In message <e9314dc6-5db0-5c01-96e7-4797f367835c@FreeBSD.org>, Kubilay Kocak wr ites: > On 2/12/2021 11:54 am, Cy Schubert wrote: > > The branch main has been updated by cy: > > > > URL: https://cgit.FreeBSD.org/ports/commit/?id=b8c4bfe660b373862165a58514f2 > 70a51e77e147 > > > > commit b8c4bfe660b373862165a58514f270a51e77e147 > > Author: Cy Schubert <cy@FreeBSD.org> > > AuthorDate: 2021-12-02 00:47:57 +0000 > > Commit: Cy Schubert <cy@FreeBSD.org> > > CommitDate: 2021-12-02 00:54:18 +0000 > > > > sysutils/reptyr: Address LLVM 13 build failure > > > > Rather than create a patch, simply add -Wno-unused-but-set-variable, > > avoiding a maintainer to backport patches any time the port is updated > . > > > > In file included from platform/freebsd/freebsd_ptrace.c:69: > > In file included from platform/freebsd/arch/amd64.h:23: > > platform/freebsd/arch/x86_common.h:45:6: error: variable 'ret' set but > not used [-Werror,-Wunused-but-set-variable] > > int ret; > > ^ > > platform/freebsd/arch/x86_common.h:54:6: error: variable 'ret' set but > not used [-Werror,-Wunused-but-set-variable] > > int ret; > > ^ > > 2 errors generated. > > Ports usually shouldn't use -Werror and people are strongly encouraged > to add -Wno-error or patch it out is the usual course of action, but > sure, specific warnings can be scoped too. I'll -Wno-error then. -- Cheers, Cy Schubert <Cy.Schubert@cschubert.com> FreeBSD UNIX: <cy@FreeBSD.org> Web: https://FreeBSD.org NTP: <cy@nwtime.org> Web: https://nwtime.org The need of the many outweighs the greed of the few.