path: root/drivers/net/atlantic/hw_atl/hw_atl_utils.c
diff options
authorFerruh Yigit <>2020-01-21 09:58:01 +0000
committerThomas Monjalon <>2020-01-21 14:41:58 +0100
commit52f0e9c136d7f5acf8dd1991d9644ed0fa28888e (patch)
treee0ea9d55fdce8832cd62a5c702729cc91912c281 /drivers/net/atlantic/hw_atl/hw_atl_utils.c
parentf061f23bcaa619209b9180f8720a128bd719e95b (diff)
net/ionic: ignore missing field initializers warningHEADmaster
The compiler warning is: from .../drivers/net/ionic/ionic_dev.c:7: .../drivers/net/ionic/ionic_if.h:202:5: note: ‘rsvd’ declared here u8 rsvd[62]; ^ This has been observed with gcc 4.8.5, newer 9+ compiler are not giving this warning. Warning is a reminder to the user that there are some fields in the struct not initialized with the default value. But the C standard clarifies that in that case the field value will be zero and code is aware of this behavior, so no initializing to a default value is intentional and it is safe to ignore this compiler warning. Adding '-Wno-missing-field-initializers' compiler flag to disable the warning. Reported-by: Anoob Joseph <> Reported-by: Raslan Darawsheh <> Reported-by: Xueming Zhang <> Signed-off-by: Ferruh Yigit <>
Diffstat (limited to 'drivers/net/atlantic/hw_atl/hw_atl_utils.c')
0 files changed, 0 insertions, 0 deletions