Index | Thread | Search

From:
Claudio Jeker <cjeker@diehard.n-r-g.com>
Subject:
Re: -Wimplicit-int fixes for various ports
To:
Theo Buehler <tb@theobuehler.org>
Cc:
ports@openbsd.org
Date:
Thu, 4 Dec 2025 19:54:17 +0100

Download raw body.

Thread
On Thu, Dec 04, 2025 at 05:59:09PM +0100, Theo Buehler wrote:
> On Thu, Dec 04, 2025 at 05:26:59PM +0100, Claudio Jeker wrote:
> > gcc15 does not like implicit int. These ports fail because the configure
> > scripts think 'main()' is good enough.
> > 
> > Fixing this is trivial and we already patch up most of those scripts for
> > other reasons.
> > 
> > This is just the tip of the Wimplicit-int iceberg but this is a start.
> 
> I'd be inclined to do this to make it a bit more resilient against the
> next warning that a compiler person turns into a hard error:
> 
> -main()
> +int main(void)
 
Sure I can do that, but we probably need to adjust a bit more then.
Let me see...

-- 
:wq Claudio