[dpdk-dev] [PATCH v4 25/27] eal: mark old naming as deprecated
Stephen Hemminger
stephen at networkplumber.org
Fri Jul 17 00:05:35 CEST 2020
On Thu, 16 Jul 2020 14:41:41 +0100
"Burakov, Anatoly" <anatoly.burakov at intel.com> wrote:
> On 15-Jul-20 9:29 PM, Stephen Hemminger wrote:
> > On Wed, 15 Jul 2020 14:28:17 +0100
> > "Burakov, Anatoly" <anatoly.burakov at intel.com> wrote:
> >
> >>> -#define SKIP_MASTER SKIP_INITIAL
> >>> -#define CALL_MASTER CALL_INITIAL
> >>> +#define SKIP_MASTER _Pragma("GCC warning \"'SKIP_MASTER' is deprecated\"") SKIP_INITIAL
> >>> +#define CALL_MASTER _Pragma("GCC warning \"'CALL_MASTER' is deprecated\"") CALL_INITIAL
> >>
> >> Presumably this is a generic header, should we introduce GCC-specific
> >> things there?
> >
> > It works with Clang as well. Likely ICC but don't have that.
> >
>
> What about MSVC?
>
The compiler issues a warning when it finds a pragma that it doesn't recognize, and continues compilation.
More information about the dev
mailing list