Re: [PATCH v2] build: force gcc to initialize padding bits

2025-02-11 Thread David Marchand
On Fri, Jan 24, 2025 at 7:27 PM Stephen Hemminger 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 so

Re: [PATCH v2] build: force gcc to initialize padding bits

2025-01-27 Thread Bruce Richardson
On Fri, Jan 24, 2025 at 10:26:48AM -0800, Stephen Hemminger 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 assumption

[PATCH v2] build: force gcc to initialize padding bits

2025-01-24 Thread Stephen Hemminger
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 initializ