On Sat 2026-06-27 09:05:28, Filip Kastl wrote:
> On Sat 2026-06-27 08:26:14, Filip Kastl wrote:
> > On Fri 2026-06-26 03:14:56, Maciej W. Rozycki wrote:
> > > On Sun, 21 Jun 2026, Jeffrey Law wrote:
> > > 
> > > > > This patch removes the const keyword from the second parameter of
> > > > > extract_quoted_files.  The function actually does modify the string
> > > > > passed through that parameter.  Moreover, clang currently produces a
> > > > > warning when compiling this file since in C23, strrchr of a const 
> > > > > char *
> > > > > returns const char *.  This patch gets rid of that warning.
> > > [...]
> > > > OK.  Thanks.
> > > 
> > >  I now get:
> > > 
> > > .../fixincludes/fixincl.c:757:19: error: assignment discards 'const' 
> > > qualifier from pointer target type [-Werror=discarded-qualifiers]
> > >   757 |     pz_fixed_file = ".";
> > >       |                   ^
> > > cc1: all warnings being treated as errors
> > > 
> > > in building `riscv64-linux-gnu' GCC with native `powerpc64le-linux-gnu' 
> > > GCC, newly-bootstrapped (which produces the same warning and just 
> > > benefits 
> > > from its `--disable-werror' default).  Reverting commit 255262a2242c 
> > > makes 
> > > the build succeed.  I suspect this wasn't the right change to make.
> > > 
> > >   Maciej
> > 
> > Yes, you're right.  Sorry about this.  I missed this statement.  I'll look 
> > into
> > it right away.
> > 
> > Thanks,
> > Filip
> 
> Hmm and I should have gotten the same error while bootstrapping, right?  I'll
> check the script I use to regtest+bootstrap.

Here is a patch that should fix this:

https://inbox.sourceware.org/gcc-patches/[email protected]/T/#u

Reply via email to