On Sun, Mar 24, 2013 at 11:46:34AM +0100, Anton Khirnov wrote: > On Thu, 21 Mar 2013 14:22:16 +0100, Diego Biurrun <[email protected]> wrote: > > --- a/libavutil/pixdesc.h > > +++ b/libavutil/pixdesc.h > > @@ -103,7 +105,7 @@ typedef struct AVPixFmtDescriptor{ > > /** > > * The array of all the pixel format descriptors. > > */ > > -extern const AVPixFmtDescriptor av_pix_fmt_descriptors[]; > > +extern attribute_deprecated const AVPixFmtDescriptor > > av_pix_fmt_descriptors[]; > > #endif > > > > Doesn't this produce three bazilion warnings?
It adds 33 warnings, but only in pixdesc.c. Of course the deprecation attributes generate warnings in the places that implement the deprecated functionality, but that seems like a reasonable price to pay in order to avoid external users relying on and not being warned about the deprecated functionality... Diego _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
