Re: Calculating array sizes in C - was: Re: Build regressions/improvements in v6.2-rc1

From: John Paul Adrian Glaubitz
Date: Fri Jan 20 2023 - 03:49:10 EST


Hi Michael!

On 1/19/23 23:11, Michael.Karcher wrote:
I suggest to file a bug against gcc complaining about a "spurious warning",
and using "-Werror -Wno-error-sizeof-pointer-div" until gcc is adapted to
not emit the warning about the pointer division if the result is not used.

Could you post a kernel patch for that? I would be happy to test it on my
SH-7785CLR board. Also, I'm going to file a bug report against GCC.

Adrian

--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913