From: macrule <562520+macrule@users.noreply.github.com> Date: Wed, 29 Nov 2017 17:18:53 +0000 (+0100) Subject: Fixed compiler warning about unused function. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=598620246a18daaea5603ee3ecf76b407318f67a;p=thirdparty%2Ftvheadend.git Fixed compiler warning about unused function. keystr() is only needed when DEBUG2 is defined, so it's now wrapped in #ifdef --- diff --git a/src/descrambler/descrambler.c b/src/descrambler/descrambler.c index e74c09ebb..ce9b400f1 100644 --- a/src/descrambler/descrambler.c +++ b/src/descrambler/descrambler.c @@ -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 /* *