From: "Morten Brørup" <mb@smartsharesystems.com>
To: <dev@dpdk.org>
Subject: RHEL 7 gcc 4.8.5 cannot ignore -Wdiscarded-qualifiers
Date: Fri, 7 Oct 2022 18:39:01 +0200 [thread overview]
Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D873B2@smartserver.smartshare.dk> (raw)
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=pragmas]
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
}
reply other threads:[~2022-10-07 16:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=98CBD80474FA8B44BF855DF32C47DC35D873B2@smartserver.smartshare.dk \
--to=mb@smartsharesystems.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).