"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
"Todd C. Miller" <millert@openbsd.org>
Subject:
Re: Pointer sign warnings
To:
Christian Weisgerber <naddy@mips.inka.de>
Cc:
gameoftrees@openbsd.org
Date:
Tue, 28 Sep 2021 09:09:22 -0600

Download raw body.

Thread
On Tue, 28 Sep 2021 16:48:40 +0200, Christian Weisgerber wrote:

> How do we want to handle this?  Adapt the world to Got or vice versa?
>
> We could add -Wno-pointer-sign to -portable.  It's what I did for
> my existing FreeBSD port.

That seems like the simplest approach.

> Alternatively, I could sit down and try to eliminate the warnings
> by adjusting the type of buffer variables etc.  I guess that will
> take a recursive approach: Start at the calls of external interfaces
> (zlib...), then work up the call chain.  If we go down that route,
> I suggest that we later add -Wpointer-sign to the development CFLAGS.

This seems like a lot of work for little gain.  I started to do
this in OpenBSD and it quickly ballooned into a huge project, at
which time I dropped it.

 - todd