Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: gcc15: dial down the erros and c-std a bit
To:
ports@openbsd.org
Date:
Wed, 5 Nov 2025 15:43:35 +0000

Download raw body.

Thread
On 2025/11/05 16:03, 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.

btw, standard clang does error on those as well, we patched to disable it.

some other discussion on the topic,

https://trac.macports.org/wiki/WimplicitFunctionDeclaration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91092
https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213/23
https://wiki.gentoo.org/wiki/Modern_C_porting

your changes make sense to me for now.

I agree with patching the compiler to turn these back to simple warnings
at this time. we can't handle fixes for these on a less common arch
especially when the compiler change will throw up other problems.

but we should probably look at doing test builds on amd64 with the
error reenabled in clang and check logs to figure out how painful it's
going to be to actually fix things.