[PATCH v4] Add pragma to ignore gcc-compat warnings in clang when used with diagnose_if.
Stephen Hemminger
stephen at networkplumber.org
Mon Jan 24 00:55:45 CET 2022
On Mon, 24 Jan 2022 10:20:24 +1300
Michael Barker <mikeb01 at gmail.com> wrote:
> When compiling with clang using -Wall (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
> ^
Which clang version is this?
Perhaps the allow internal API could use a different attribute that
could work in both cases?
More information about the dev
mailing list