From 3fb1f4f7d852360f95e1e780d2a119b8c4e2763d Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 24 Sep 2016 16:06:09 +0300 Subject: [PATCH] tinfgzip: Fixes for pedantic compiler warnings. --- src/tinfgzip.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tinfgzip.c b/src/tinfgzip.c index ca5cf14..f1afdd0 100644 --- a/src/tinfgzip.c +++ b/src/tinfgzip.c @@ -41,6 +41,9 @@ #define FNAME 8 #define FCOMMENT 16 +void tinf_skip_bytes(TINF_DATA *d, int num); +uint16_t tinf_get_uint16(TINF_DATA *d); + void tinf_skip_bytes(TINF_DATA *d, int num) { while (num--) uzlib_get_byte(d); @@ -92,7 +95,7 @@ int uzlib_gzip_parse_header(TINF_DATA *d) /* check header crc if present */ if (flg & FHCRC) { - unsigned int hcrc = tinf_get_uint16(d); + /*unsigned int hcrc =*/ tinf_get_uint16(d); // TODO: Check! // if (hcrc != (tinf_crc32(src, start - src) & 0x0000ffff))