On Fri, Jan 24, 2025 at 7:27 PM Stephen Hemminger
<[email protected]> wrote:
>
> With GCC 15, the compiler has changed the default behavior when
> initialization is used for aggregate variables. The new default
> is to follow the standard (C23) and not initialize everything by
> default. This breaks assumptions in some drivers and can be
> lead to other bugs. Use the new zero initialization flag to
> force of all fields to zero.
>
> Note: other compilers always initialize to zero in these cases.
> Only GCC seems to have decided to start initializing less as
> a silly attempt at optimization.
>
> Signed-off-by: Stephen Hemminger <[email protected]>
> Acked-by: Morten Brørup <[email protected]>

Applied, thanks.


-- 
David Marchand

Reply via email to