closedcaption: avoid implicit convertion of enums
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 14 Aug 2018 10:36:53 +0000 (12:36 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 14 Aug 2018 11:31:49 +0000 (13:31 +0200)
commit808b404e88526b8cf4cba6a32718e649f1390192
tree47e3244c13d346055f6f3f1b4216ee5e04c2a184
parentc54e4b630516ba763c047d5f742af35a6d7d01f2
closedcaption: avoid implicit convertion of enums

When compiling with clang-6 this error pops out:

raw_decoder.c:1011:62: error: implicit conversion from enumeration
type 'const vbi_modulation' to different enumeration type
'vbi3_modulation' [-Werror,-Wenum-conversion]

This is because function vbi3_bit_slicer_set_params() sets
vbi3_modulation as enum type parameter, nonetheless vbi_modulation
enum is passed. Both enums looks semantically equal, thus the fix is a
simple cast.

https://bugzilla.gnome.org/show_bug.cgi?id=796957
ext/closedcaption/raw_decoder.c