Re: [lng-odp] [API-NEXT 1/3] api: hints: rework ODP_DEPRECATED API

2017-03-07 Thread Dmitry Eremin-Solenikov
On 07.03.2017 14:52, Dmitry Eremin-Solenikov wrote: > diff --git a/include/odp/api/spec/hints.h b/include/odp/api/spec/hints.h > index 82400f07..3b70db6f 100644 > --- a/include/odp/api/spec/hints.h > +++ b/include/odp/api/spec/hints.h > @@ -54,7 +54,20 @@ extern "C" { > /** > * Indicate deprecat

[lng-odp] [API-NEXT 1/3] api: hints: rework ODP_DEPRECATED API

2017-03-07 Thread Dmitry Eremin-Solenikov
The ODP_DEPRECATED macro uses the deprecated attribute which works only for types and functions, but not e.g. for fields of structure. So let's add ODP_DEPRECATED_FIELD macro suitable for fields, variables and enum values. Also make ODP_DEPRECATED{,_FIELD} macros to be a no-op if ODP_ALLOW_DEPRECA

[lng-odp] [API-NEXT 1/3] api: hints: rework ODP_DEPRECATED API

2017-03-07 Thread Dmitry Eremin-Solenikov
From: Dmitry Eremin-Solenikov The ODP_DEPRECATED macro uses the deprecated attribute which works only for types and functions, but not e.g. for fields of structure. So let's add ODP_DEPRECATED_FIELD macro suitable for fields, variables and enum values. Also make ODP_DEPRECATED{,_FIELD} macros to