Andrey Utkin <[email protected]> writes:

> ---
>  libavfilter/avfilter.h |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
> index 70efc5c..cffcfca 100644
> --- a/libavfilter/avfilter.h
> +++ b/libavfilter/avfilter.h
> @@ -164,6 +164,7 @@ static inline void
> avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilt
>      switch (src->type) {
>      case AVMEDIA_TYPE_VIDEO: *dst->video = *src->video; break;
>      case AVMEDIA_TYPE_AUDIO: *dst->audio = *src->audio; break;
> +    default: break;
>      }
>  }
>
> -- 
> 1.7.7
>
> We have annoying warning:
>
> /usr/local/src/libav_for_imgs2video/libavfilter/avfilter.h: In
> function ‘avfilter_copy_buffer_ref_props’:
> /usr/local/src/libav_for_imgs2video/libavfilter/avfilter.h:164:
> warning: enumeration value ‘AVMEDIA_TYPE_UNKNOWN’ not handled in
> switch
> /usr/local/src/libav_for_imgs2video/libavfilter/avfilter.h:164:
> warning: enumeration value ‘AVMEDIA_TYPE_DATA’ not handled in switch
> /usr/local/src/libav_for_imgs2video/libavfilter/avfilter.h:164:
> warning: enumeration value ‘AVMEDIA_TYPE_SUBTITLE’ not handled in
> switch
> /usr/local/src/libav_for_imgs2video/libavfilter/avfilter.h:164:
> warning: enumeration value ‘AVMEDIA_TYPE_ATTACHMENT’ not handled in
> switch
> /usr/local/src/libav_for_imgs2video/libavfilter/avfilter.h:164:
> warning: enumeration value ‘AVMEDIA_TYPE_NB’ not handled in switch

This is nonsense.  There is no such warning when building libav.

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to