numam-dpdk/lib/eal
Michael Barker ed57d08dfd eal: ignore gcc-compat warning in clang-only macro
When compiling with clang using -Wpedantic (or -Wgcc-compat) the use of
diagnose_if kicks up a warning:

.../include/rte_interrupts.h:623:1: error: 'diagnose_if' is a clang
extension [-Werror,-Wgcc-compat]
__rte_internal
^
.../include/rte_compat.h:36:16: note: expanded from macro '__rte_internal'
__attribute__((diagnose_if(1, "Symbol is not public ABI", "error"), \

This change ignores the '-Wgcc-compat' warning in the specific location
where the warning occurs.  It is safe to do in this circumstance as the
specific macro is only defined when using the clang compiler.

Signed-off-by: Michael Barker <mikeb01@gmail.com>
2022-02-12 14:37:47 +01:00
..
arm eal/arm: inline 128-bit atomic compare exchange with GCC 2022-02-11 08:44:09 +01:00
common remove unnecessary null checks 2022-02-12 12:07:48 +01:00
freebsd remove unnecessary null checks 2022-02-12 12:07:48 +01:00
include eal: ignore gcc-compat warning in clang-only macro 2022-02-12 14:37:47 +01:00
linux remove unnecessary null checks 2022-02-12 12:07:48 +01:00
ppc eal/ppc: use compiler builtins for atomics 2021-10-14 16:51:25 +02:00
unix eal: move Unix filesystem functions into one file 2022-02-09 19:12:53 +01:00
windows remove unnecessary null checks 2022-02-12 12:07:48 +01:00
x86 fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
meson.build eal: add OS defines for C conditional checks 2022-01-17 19:26:42 +01:00
version.map eal: add internal function to get base address 2022-02-08 23:59:10 +01:00