Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Dec 2021 17:20:15 -0800
From:      Cy Schubert <Cy.Schubert@cschubert.com>
To:        koobs@FreeBSD.org
Cc:        Cy Schubert <cy@FreeBSD.org>, ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   Re: git: b8c4bfe660b3 - main - sysutils/reptyr: Address LLVM 13  build failure
Message-ID:  <202112020120.1B21KFv6010369@slippy.cwsent.com>
In-Reply-To: <e9314dc6-5db0-5c01-96e7-4797f367835c@FreeBSD.org>
References:  <202112020054.1B20sZXk040844@gitrepo.freebsd.org>  <e9314dc6-5db0-5c01-96e7-4797f367835c@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112020120.1B21KFv6010369>