[dpdk-dev] [PATCH] crypto/dpaa2_sec: fix build with GCC 6 or prior
Thomas Monjalon
thomas at monjalon.net
Tue Jan 30 15:01:07 CET 2018
30/01/2018 10:23, Hemant Agrawal:
> This patch fixes the compilation with compiler GCC < 7
>
> dpaa2_sec/hw/rta/operation_cmd.h:12:32: error: unknown option after
> ‘#pragma GCC diagnostic’ kind [-Werror=pragmas]
> #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
>
> Fixes: 2ab9a9483196 ("crypto/dpaa2_sec: fix build with GCC 7")
Sorry for having broken it with a quick fix yesterday.
> Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
[...]
> +#if defined(RTE_TOOLCHAIN_GCC) && (GCC_VERSION > 70000)
> #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
> +#endif
I think it must be GCC_VERSION >= 70000
Applied with this change, thanks
More information about the dev
mailing list