]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fixed compiler warning about unused function.
authormacrule <562520+macrule@users.noreply.github.com>
Wed, 29 Nov 2017 17:18:53 +0000 (18:18 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 29 Nov 2017 19:55:06 +0000 (20:55 +0100)
keystr() is only needed when DEBUG2 is defined, so it's now wrapped in #ifdef

src/descrambler/descrambler.c

index e74c09ebb3d509d309f823c34a37bb18687a44a9..ce9b400f1e2c047e15f5f70e2b3ba72b762b1cca 100644 (file)
@@ -71,6 +71,7 @@ static inline int extractpid(const uint8_t *tsb)
   return (tsb[1] & 0x1f) << 8 | tsb[2];
 }
 
+#if DEBUG2
 static inline const char *keystr(const uint8_t *tsb)
 {
   uint8_t b = tsb[3];
@@ -78,6 +79,7 @@ static inline const char *keystr(const uint8_t *tsb)
     return (b & 0x40) ? "odd" : "even";
   return (b & 0x40) ? "none2" : "none";
 }
+#endif
 
 /*
  *