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 }

