[dpdk-dev] [PATCH] mk: ignore missing field initializers warning

Thomas Monjalon thomas at monjalon.net
Thu Feb 6 03:13:19 CET 2020


21/01/2020 16:55, Ferruh Yigit:
> On 1/21/2020 2:35 PM, Thomas Monjalon wrote:
> > Three warnings are commonly disabled in DPDK with make and meson:
> > 	* address-of-packed-member
> > 		always disabled
> > 	* missing-field-initializers
> > 		disabled with meson
> > 		disabled with make + clang or make + gcc < 4.7
> > 		disabled with make + gcc <= 5 for test files and event drivers
> > 	* packed-not-aligned
> > 		disabled with meson
> > 
> > This change is removing exceptions for missing-field-initializers.
> > As it is always disabled, some redundant configs are cleaned up.
> > 
> > Now the situation is:
> > 	* address-of-packed-member
> > 		always disabled
> > 	* missing-field-initializers
> > 		always disabled
> > 	* packed-not-aligned
> > 		disabled with meson
> > 
> > It could alternatively be decided to disable missing-field-initializers
> > only for old gcc (< 6).
> 
> I am not sure if we ever want 'missing-field-initializers' warnings, so +1 to
> drop it without version check as it is done in this patch.
> 
> > 
> > The warning packed-not-aligned is not modified in this change.
> > 
> > Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> 
> Acked-by: Ferruh Yigit <ferruh.yigit at intel.com>

Applied




More information about the dev mailing list