[PATCH v2 1/2] printf %p specifier requires `void *` argument

Damien Miller djm at mindrot.org
Fri Jun 4 16:21:15 AEST 2021


On Thu, 13 May 2021, Michael Forney wrote:

> It is undefined behavior to call printf with an argument for %p
> that does not have type `void *` (see C99 7.19.6.1p9).
> ---
> On 2020-02-05, Damien Miller <djm at mindrot.org> wrote:
> > I'll look at fixing the %p warning
> > after release, probably by removing all the %p formats :)
> > 
> > The RB_GENERATE_STATIC one I'll also look at after release, by syncing
> > openbsd-compat/sys-tree.h with upstream as that has already fixed the
> > same problem.
> 
> Resending these patches rebased on latest master.

Thanks - I think I'd prefer to remove most of the %p logging. Will
take a look.

-d


More information about the openssh-unix-dev mailing list