From: Jeremie Courreges-Anglas Subject: Re: gcc15: dial down the erros and c-std a bit To: ports@openbsd.org Date: Sun, 9 Nov 2025 17:38:40 +0100 On Wed, Nov 05, 2025 at 04:03:54PM +0100, Claudio Jeker wrote: > gcc15 is very bleading edge, it is ahead of base clang when it comes to > support C23 and that just breaks too much. > > This diff reduces the pain by switching back to C17 by default and > turning -Wimplicit-function-declaration and -Wincompatible-pointer-types > back into simple warnings. > > There is still an open issue with -Wimplicit-int and the fact that some > old configure script like to compile 'main() { return 0; }' as minimal C > program. Right now I want to see how far we get with gcc15 as ports-gcc > and the above fixes. I added a hack to devel/smpeg to workaround that > since it is a dependency for some 20+ ports. Makes sense to me. I just don't know where in the tree we should add a note so that we don't forget to go back to C23 by default when clang base in base happens to default to C23 too. Maybe simply at the top of gcc/15/Makefile? Tested on arm64, ok jca@ -- jca