Le quartidi 4 thermidor, an CCXXIII, James Almer a écrit :
> Both GCC and MSVC let you in theory deprecate enumerators
> 
> https://gcc.gnu.org/onlinedocs/gcc/Enumerator-Attributes.html
> https://msdn.microsoft.com/en-us/library/c8xdzzhh.aspx
> 
> I tried the example shown there for GCC but it didn't work. I may
> have done something wrong, though.

With gcc, I have tried the same thing and it had no effect.

Since deprecated types work, there is a possible hack:

typedef int ff_deprecated attribute_deprecated;

#define DERECATED_INT_MACRO ((enum foo)(ff_deprecated)VALUE)

Regards,

-- 
 Nicolas George
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to