GNOME Bugzilla – Bug 796957
closedcaptions: fixes when compiling with clang-6
Last modified: 2018-08-14 11:34:01 UTC
Compling gstreamer with clang-6 I got hit with these two errors. The following patches kind of fix them.
Created attachment 373326 [details] [review] 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.
Created attachment 373327 [details] [review] closedcaption: comment out unused function When compiling with clang-6 this error raises: raw_decoder.c:411:1: error: unused function 'cpr1204_crc' [-Werror,-Wunused-function] This patch only comments it out.
Attachment 373326 [details] pushed as 808b404 - closedcaption: avoid implicit convertion of enums Attachment 373327 [details] pushed as 85f142a - closedcaption: comment out unused function