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

- From: John Paul Adrian Glaubitz \<glaubitz@physik.fu-berlin.de\>
- Date: 2023-01-20 08:49:09 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2023/01/2073928
- Thread: https://ratatoskr.run/amd-gfx/2022/12/2049012/t.md

```text
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

```
