closedcaption: comment out unused function
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 14 Aug 2018 10:42:02 +0000 (12:42 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 14 Aug 2018 11:31:49 +0000 (13:31 +0200)
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.

https://bugzilla.gnome.org/show_bug.cgi?id=796957

ext/closedcaption/raw_decoder.c

index 3523842..9e7415a 100644 (file)
@@ -407,6 +407,7 @@ _vbi3_raw_decoder_dump (const vbi3_raw_decoder * rd, FILE * fp)
   }
 }
 
+#if 0                           /* @UNUSED */
 _vbi_inline int
 cpr1204_crc (const vbi_sliced * sliced)
 {
@@ -426,6 +427,7 @@ cpr1204_crc (const vbi_sliced * sliced)
 
   return crc;
 }
+#endif
 
 static vbi_bool
 slice (vbi3_raw_decoder * rd,