From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5BFF1A00C3; Tue, 18 Jan 2022 00:14:16 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1ED4740DDB; Tue, 18 Jan 2022 00:14:16 +0100 (CET) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mails.dpdk.org (Postfix) with ESMTP id F04DD40140 for ; Tue, 18 Jan 2022 00:14:14 +0100 (CET) Received: by mail-pf1-f173.google.com with SMTP id s15so11451855pfw.1 for ; Mon, 17 Jan 2022 15:14:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RMKslUc7nQfgd+8vxjdn9oFI866unjq0LFo4eOOe5QU=; b=cJlCKRrfdz+HYJ5USMVEJOrYys+Mdw3GVzyj//zhnNPid6WYkZOBTu/LpfiXtX9Zrm RYksNgotG6ybb4KaH/HmxpNgVHDZMDelsMFsRRjdH6ktBDPSOov2jSWXBPSITa3y6WH5 vfR2o4s4Udy4mmCKnBBuf1F86nHx/RMTwyD3cjXs3JSaBVq/ea8LOSO0cf7kzb2iFwD4 2pTtL+psx7XQPyI8XQYXSRlUiL7VQfSixPiVnwDWBA+H/wf2Q+ivK84lQjl7GDbfPPm3 4h9bPlRZJBEfDZoT0eL/h1lushNoHaGfSo1IEwkzXGjoHQvSrUBZpTf2mAoPAWz6+KdY lGyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RMKslUc7nQfgd+8vxjdn9oFI866unjq0LFo4eOOe5QU=; b=Dk4Nud21NQTSDdGEKMn+F0nvTrDT4b3dgM9iX0mW3fpJyF/pgqJxS9pQtJDqa7SGR/ 77rATcIAdkVeRcbkYnW91pT49ndDoEynghxG2u+ZcLUQlc/vjktHEqGUaUQbUTzH8dKu iHGPhttHGVnM1jX1BIdGp8bzdZUrjNdMDykRWDLTs3lvKil8YcOdSWUq/n+8ON+FRFXd 3La1gSK7ccPGG9EGIoGNGk+kYb/yI3NsIvUlfNhlYSJ5Bt/KY3xxJvt+ZECV1VJQr42y ok9XGc8XbPn1wZBthBq7p+8h9/MHwyl6l4vqTjQHNjbqdobeenJpvfcZrJRTiOvwCumi Jp1Q== X-Gm-Message-State: AOAM530LYmU6Ed8pkUN+lwvnmQQgeJylTrbSN0qesw9uFYNUufL8J4Vt m/rtX3Pv1OOM+Kp2rMnxBolIObzyFYsTiA== X-Google-Smtp-Source: ABdhPJyI5NLepoTs0Unfj7rSjKnAOJHj1wQvoFgFLa++alzLkTM4hiK6y7lsuoXyGbwwybMPXjA/DQ== X-Received: by 2002:a63:284:: with SMTP id 126mr20240609pgc.328.1642461254013; Mon, 17 Jan 2022 15:14:14 -0800 (PST) Received: from plinth.fritz.box ([151.210.134.32]) by smtp.googlemail.com with ESMTPSA id t5sm12842638pgj.85.2022.01.17.15.14.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 15:14:13 -0800 (PST) From: Michael Barker To: dev@dpdk.org Cc: Michael Barker , Ray Kinsella Subject: [PATCH] Add pragma to ignore gcc-compat warnings in clang when used with diagnose_if. Date: Tue, 18 Jan 2022 12:14:04 +1300 Message-Id: <20220117231404.219496-1-mikeb01@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Signed-off-by: Michael Barker --- lib/eal/include/rte_compat.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/eal/include/rte_compat.h b/lib/eal/include/rte_compat.h index 2718612cce..9556bbf4d0 100644 --- a/lib/eal/include/rte_compat.h +++ b/lib/eal/include/rte_compat.h @@ -33,8 +33,11 @@ section(".text.internal"))) #elif !defined ALLOW_INTERNAL_API && __has_attribute(diagnose_if) /* For clang */ #define __rte_internal \ +_Pragma("GCC diagnostic push") \ +_Pragma("GCC diagnostic ignored \"-Wgcc-compat\"") \ __attribute__((diagnose_if(1, "Symbol is not public ABI", "error"), \ -section(".text.internal"))) +section(".text.internal"))) \ +_Pragma("GCC diagnostic pop") #else -- 2.25.1