Re: [RFC PATCH net-next v1 08/11] drivers/net/ethernet: handle one warning explicitly

2020-09-11 Thread Jacob Keller
On 9/10/2020 6:23 PM, Jesse Brandeburg wrote: > While fixing the W=1 builds, this warning came up because the > developers used a very tricky way to get structures initialized > to a non-zero value, but this causes GCC to warn about an > override. In this case the override was intentional, so ju

[RFC PATCH net-next v1 08/11] drivers/net/ethernet: handle one warning explicitly

2020-09-10 Thread Jesse Brandeburg
While fixing the W=1 builds, this warning came up because the developers used a very tricky way to get structures initialized to a non-zero value, but this causes GCC to warn about an override. In this case the override was intentional, so just disable the warning for this code with a #pragma. Sig