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
This commit is contained in:
Víctor Manuel Jáquez Leal 2018-08-14 12:36:53 +02:00
parent c54e4b6305
commit 808b404e88

View file

@ -1008,7 +1008,8 @@ vbi3_raw_decoder_add_services (vbi3_raw_decoder * rd,
par->cri_rate,
cri_end,
(par->cri_frc & ((1U << par->frc_bits) - 1)),
par->frc_bits, par->payload, par->bit_rate, par->modulation)) {
par->frc_bits, par->payload, par->bit_rate,
(vbi3_modulation) par->modulation)) {
assert (!"bit_slicer_set_params");
}