]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
opentv: fix complation with --disable-trace
authorJaroslav Kysela <perex@perex.cz>
Mon, 26 Jan 2015 18:56:16 +0000 (19:56 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 26 Jan 2015 18:56:16 +0000 (19:56 +0100)
src/epggrab/module/opentv.c

index fceadf027f051e92ff2452e941171b70d818298e..b05fc8f426363084a1b0251857dd926ce4599875 100644 (file)
@@ -446,7 +446,10 @@ opentv_desc_channels
   epggrab_channel_link_t *ecl;
   mpegts_service_t *svc;
   channel_t *ch;
-  int sid, type, cid, cnum, unk;
+  int sid, cid, cnum, unk;
+#if ENABLE_TRACE
+  int type;
+#endif
   int save = 0;
   int i = 2;
 
@@ -464,7 +467,9 @@ opentv_desc_channels
 
   while (i < len) {
     sid  = ((int)buf[i] << 8) | buf[i+1];
+#if ENABLE_TRACE
     type = buf[2];
+#endif
     cid  = ((int)buf[i+3] << 8) | buf[i+4];
     cnum = ((int)buf[i+5] << 8) | buf[i+6];
     unk  = ((int)buf[i+7] << 8) | buf[i+8];