[vlc-devel] [vlc-commits] imem: fix warning

Steve Lhomme robux4 at gmail.com
Tue Jul 25 07:34:30 CEST 2017


On Mon, Jul 24, 2017 at 6:32 PM, Rémi Denis-Courmont <git at videolan.org> wrote:
> vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul 24 19:19:00 2017 +0300| [5efc79cf91cfb9b151e7e47de3a4f589116293df] | committer: Rémi Denis-Courmont
>
> imem: fix warning
>
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5efc79cf91cfb9b151e7e47de3a4f589116293df
> ---
>
>  modules/access/imem.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/modules/access/imem.c b/modules/access/imem.c
> index 08426eafde..09a74f1c15 100644
> --- a/modules/access/imem.c
> +++ b/modules/access/imem.c
> @@ -403,6 +403,7 @@ static inline int GetCategory(vlc_object_t *object)
>          return SPU_ES;
>      default:
>          msg_Err(object, "Invalid ES category");
> +        /* fall through */

How does adding a comment "fix a warning" ?

>      case 4:
>          return UNKNOWN_ES;
>      }
>
> _______________________________________________
> vlc-commits mailing list
> vlc-commits at videolan.org
> https://mailman.videolan.org/listinfo/vlc-commits


More information about the vlc-devel mailing list