On Thu, 21 Mar 2013 14:22:16 +0100, Diego Biurrun <[email protected]> wrote:
> ---
>
> Rebased on top of master, swscale attributes dropped.
>
> libavcodec/avcodec.h | 3 ++-
> libavcodec/internal.h | 1 +
> libavfilter/avfilter.h | 5 +++--
> libavformat/avformat.h | 1 +
> libavutil/pixdesc.h | 4 +++-
> 5 files changed, 10 insertions(+), 4 deletions(-)
>
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index 316d30a..ed02a7f 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -28,6 +28,7 @@
>
> #include <errno.h>
> #include "libavutil/samplefmt.h"
> +#include "libavutil/attributes.h"
> #include "libavutil/avutil.h"
> #include "libavutil/buffer.h"
> #include "libavutil/cpu.h"
> @@ -1759,7 +1760,7 @@ typedef struct AVCodecContext {
> * - decoding: Set by user.
> * @deprecated Deprecated in favor of request_channel_layout.
> */
> - int request_channels;
> + attribute_deprecated int request_channels;
> #endif
>
> /**
> diff --git a/libavcodec/internal.h b/libavcodec/internal.h
> index 65437ed..ac2f6dd 100644
> --- a/libavcodec/internal.h
> +++ b/libavcodec/internal.h
> @@ -26,6 +26,7 @@
>
> #include <stdint.h>
>
> +#include "libavutil/attributes.h"
Seems unused.
> #include "libavutil/buffer.h"
> #include "libavutil/mathematics.h"
> #include "libavutil/pixfmt.h"
> diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
> index b3522f8..ec9b970 100644
> --- a/libavfilter/avfilter.h
> +++ b/libavfilter/avfilter.h
> @@ -22,6 +22,7 @@
> #ifndef AVFILTER_AVFILTER_H
> #define AVFILTER_AVFILTER_H
>
> +#include "libavutil/attributes.h"
> #include "libavutil/avutil.h"
> #include "libavutil/frame.h"
> #include "libavutil/log.h"
> @@ -433,14 +434,14 @@ struct AVFilterContext {
> AVFilterPad *input_pads; ///< array of input pads
> AVFilterLink **inputs; ///< array of pointers to input links
> #if FF_API_FOO_COUNT
> - unsigned input_count; ///< @deprecated use nb_inputs
> + attribute_deprecated unsigned input_count; ///< @deprecated use nb_inputs
> #endif
> unsigned nb_inputs; ///< number of input pads
>
> AVFilterPad *output_pads; ///< array of output pads
> AVFilterLink **outputs; ///< array of pointers to output links
> #if FF_API_FOO_COUNT
> - unsigned output_count; ///< @deprecated use nb_outputs
> + attribute_deprecated unsigned output_count; ///< @deprecated use
> nb_outputs
> #endif
> unsigned nb_outputs; ///< number of output pads
>
> diff --git a/libavformat/avformat.h b/libavformat/avformat.h
> index 067a787..7e43397 100644
> --- a/libavformat/avformat.h
> +++ b/libavformat/avformat.h
> @@ -201,6 +201,7 @@
> #include <time.h>
> #include <stdio.h> /* FILE */
> #include "libavcodec/avcodec.h"
> +#include "libavutil/attributes.h"
Here too
> #include "libavutil/dict.h"
> #include "libavutil/log.h"
>
> diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h
> index ef93bfe..ebda6de 100644
> --- a/libavutil/pixdesc.h
> +++ b/libavutil/pixdesc.h
> @@ -23,6 +23,8 @@
> #define AVUTIL_PIXDESC_H
>
> #include <inttypes.h>
> +
> +#include "attributes.h"
> #include "pixfmt.h"
>
> typedef struct AVComponentDescriptor{
> @@ -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?
--
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel