On Mon, 31 Jul 2023, Kito Cheng wrote: > > I just configure with `--enable-werror-always', which we want to keep > > our standards up to anyway, > > I rely on the host GCC which is 11 relatively old compared to the > trunk, so --enable-werror-always will get many -Wformat* warning :(
If building a cross-compiler for upstream submissions or regression runs I always bootstrap a native compiler of the same checkout first and then use it for the build. I think it's good practice, and it's needed for the Ada frontend anyway. That's one way to avoid introducing warnings by chance, and it takes less than an hour to bootstrap native GCC on decent contemporary hardware (and then you don't have to be pedantic, and neither I am, and you can keep reusing an older native build for some time). Maciej