Re: [PATCH] sunrpc: fix clang-17 warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 01, 2023 at 06:52:03PM +0300, Dmitry Antipov wrote:
> On 6/1/23 18:34, Dan Carpenter wrote:
> 
> > This is a bug in Clang.
> 
> Is it confirmed by LLVM/clang developers? The compiler says that
> <any unsigned 32-bit> can't be larger than <max unsigned 64-bit> / 8
> (assuming LP64). Why this is wrong?

It's a false positive because the test is obviously intended for 32-bit
longs.

regards,
dan carpenter




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux