Re: [RFC] rtc: Avoid a couple of -Wflex-array-member-not-at-end warnings

2025-03-11 Thread Tzung-Bi Shih
On Mon, Mar 10, 2025 at 03:46:26PM +1030, Gustavo A. R. Silva wrote: > Hi all, > > As part of the efforts to globally enable -Wflex-array-member-not-at-end, > I'm currently trying to fix the following warnings: > > drivers/rtc/rtc-cros-ec.c:62:40: warning: structure containing a flexible > array

Re: [PATCH][next] platform/chrome: Fix -Warray-bounds warnings

2023-12-15 Thread Tzung-Bi Shih
On Wed, 29 Mar 2023 19:54:02 -0600, Gustavo A. R. Silva wrote: > GCC-13 (and Clang) does not like having a partially allocated object, > since it cannot reason about it for bounds checking. > > Notice that the compiler is legitimately complaining about accessing > an object (params, in this case)