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

- From: Michael Karcher \<hidden\>
- Date: 2023-01-20 19:29:49 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2023/01/2074833
- Thread: https://ratatoskr.run/amd-gfx/2022/12/2049012/t.md

```text
Hello Adrian,
> 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.

I filed the bug already. It's https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108483.

The diff is attached. It's published as CC0 in case anyone considers this trivial change copyrightable. This patch prevents this one specific warning from being upgraded to "error" even if you configure the kernel to use "-Werror". It still keeps it active as warning, though.

Kind regards,
  Michael Karcher
```

## Attachments

- [werror.diff](https://ratatoskr.run/linuxppc-dev/2023/01/2074833/attachment/0) (text/plain, 469 bytes)
