Re: [PATCH 1/1] x86/boot: clear some fields explicitly

From: John Hubbard
Date: Thu Jul 25 2019 - 16:44:53 EST


On 7/25/19 1:38 PM, H. Peter Anvin wrote:
> On 7/25/19 12:22 AM, Thomas Gleixner wrote:

> The easy way would be to put in a suitable cast to clear the warning -- I
> would not be surprised if an explicit cast to something like (void *) would
> quiet the warning, or else (yuck) put in an explicit (well-commented) #pragma
> to shut it up.
>

I wish. The first thing I tried was a (void*) cast, and the second thing
was declaring a void pointer instead. But the new compiler is fiendishly
clever, and figured me out in both cases.

The #pragma I haven't tried, it seems like a bit too far.

thanks,
--
John Hubbard
NVIDIA