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