Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: gcc 12 question



Patrick Welche writes:
> On Thu, Nov 23, 2023 at 12:31:34PM +0000, Robert Swindells wrote:
> > 
> > Patrick Welche <prlw1%talktalk.net@localhost> wrote:
> > > I'm trying to build a release on amd64 using
> > >
> > > HAVE_MESA_VER=21
> > > HAVE_GCC=12
> > 
> > What does pkgsrc graphics/MesaLib do if built using gcc 12?
>
> It builds OK.
>
> Given
>
> https://gcc.gnu.org/bugzilla//show_bug.cgi?id=109716
>
> my guess is that the pkgsrc package doesn't treat warnings as errors.
> (-Werror=stringop-overread)

this looks wrong to me (the warning, as you pointed out in your
original mail, the code appears fine), and the right workaround
is to use ${CC_WNO_STRINGOP_OVERREAD} to avoid it.

thanks.


.mrg.


Home | Main Index | Thread Index | Old Index