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 CF357A04FD; Fri, 7 Oct 2022 18:39:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 853E340A80; Fri, 7 Oct 2022 18:39:02 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 69DCD40687 for ; Fri, 7 Oct 2022 18:39:01 +0200 (CEST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RHEL 7 gcc 4.8.5 cannot ignore -Wdiscarded-qualifiers Date: Fri, 7 Oct 2022 18:39:01 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D873B2@smartserver.smartshare.dk> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: RHEL 7 gcc 4.8.5 cannot ignore -Wdiscarded-qualifiers Thread-Index: Adjaa03kt4OOUeoYTsiWq9OltbxI6A== From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: 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 Anyone from Red Hat care to suggest a fix for the problem below, related = to the ancient GCC (version 4.8.5) on RHEL 7? I get this warning: error: unknown option after '#pragma GCC diagnostic' kind = [-Werror=3Dpragmas] for source code containing: #pragma GCC diagnostic ignored "-Wdiscarded-qualifiers" Here's the link to the failing CI test: = https://lab.dpdk.org/results/dashboard/patchsets/23818/#env-36 Here's the source code triggering the error: /** * @internal * Workaround for _mm_stream_load_si128() missing const in the = parameter. */ __rte_internal static __rte_always_inline __m128i _mm_stream_load_si128_const(const __m128i * const mem_addr) { #if defined(RTE_TOOLCHAIN_GCC) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdiscarded-qualifiers" #endif return _mm_stream_load_si128(mem_addr); #if defined(RTE_TOOLCHAIN_GCC) #pragma GCC diagnostic pop #endif }