Re: [PATCH v1 02/48] tools headers: Silence -Wshorten-64-to-32 warnings

From: Yury Norov
Date: Thu Apr 03 2025 - 10:31:52 EST


On Thu, Apr 03, 2025 at 10:08:39AM -0400, Yury Norov wrote:
> On Tue, Apr 01, 2025 at 11:23:00AM -0700, Ian Rogers wrote:
> > The clang warning -Wshorten-64-to-32 can be useful to catch
> > inadvertent truncation. In some instances this truncation can lead to
> > changing the sign of a result, for example, truncation to return an
> > int to fit a sort routine. Silence the warning by making the implicit
> > truncation explicit.
> >
> > Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>

I'm the first person in the To list, but only a couple patches in the
series are related to my area. If you want to move it with me, can you
send bitmaps, bitfields etc. separately?

Thanks,
Yury