From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hemant Agrawal Subject: [PATCH] crypto/dpaa2_sec: fix build with GCC 6 or prior Date: Tue, 30 Jan 2018 14:53:30 +0530 Message-ID: <1517304210-15061-1-git-send-email-hemant.agrawal@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: dev@dpdk.org, thomas@monjalon.net Return-path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0076.outbound.protection.outlook.com [104.47.2.76]) by dpdk.org (Postfix) with ESMTP id 5B9061B2FE for ; Tue, 30 Jan 2018 10:25:02 +0100 (CET) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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") Signed-off-by: Hemant Agrawal --- drivers/crypto/dpaa2_sec/hw/rta/operation_cmd.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/dpaa2_sec/hw/rta/operation_cmd.h b/drivers/crypto/dpaa2_sec/hw/rta/operation_cmd.h index c4febcb..90ce39f 100644 --- a/drivers/crypto/dpaa2_sec/hw/rta/operation_cmd.h +++ b/drivers/crypto/dpaa2_sec/hw/rta/operation_cmd.h @@ -8,7 +8,9 @@ #ifndef __RTA_OPERATION_CMD_H__ #define __RTA_OPERATION_CMD_H__ +#if defined(RTE_TOOLCHAIN_GCC) && (GCC_VERSION > 70000) #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" +#endif extern enum rta_sec_era rta_sec_era; -- 2.7.4