[dpdk-dev] [PATCH 3/3] config/build: ignore enum forward reference warning

Narcisa Ana Maria Vasile navasile at linux.microsoft.com
Thu Dec 10 01:53:40 CET 2020


On Fri, Dec 04, 2020 at 05:10:20PM -0800, Pallavi Kadam wrote:
> Warning generated using Clang compiler:
> ..\drivers\net\i40e\base/i40e_osdep.h:34:14: warning: forward references
> to 'enum' types are a Microsoft extension
> [-Wmicrosoft-enum-forward-reference]
> typedef enum i40e_status_code i40e_status;
>              ^
> 
> Adding -Wmicrosoft-enum-forward-reference compiler flag to disable
> the warning on Windows Clang.
> 
> Signed-off-by: Pallavi Kadam <pallavi.kadam at intel.com>
> Reviewed-by: Ranjit Menon <ranjit.menon at intel.com>
> ---

Why not including the "i40e_status.h" header that contains the definition of the enum
in this file?


More information about the dev mailing list