X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmjpegls%2FDecoder%2Fbitio.c;h=13d9f4596167ae360c8bb002ff884caf9846a7cd;hb=94015b89675cf4431c7e4953a597b70cfde03bcc;hp=8353b108b671fccb6323baff5bb1c99ea181d6e5;hpb=5643fadddc60ed9986f21bddf1e1ed1d36f5d7a2;p=gdcm.git diff --git a/src/gdcmjpegls/Decoder/bitio.c b/src/gdcmjpegls/Decoder/bitio.c index 8353b108..13d9f459 100644 --- a/src/gdcmjpegls/Decoder/bitio.c +++ b/src/gdcmjpegls/Decoder/bitio.c @@ -88,6 +88,7 @@ int bits; /* number of bits free in bit buffer (on output) */ void bufiinit(FILE *fil) { /* argument is ignored */ + (void)fil; fp = BUFSIZE; truebufsize = 0; foundeof = 0; @@ -141,7 +142,8 @@ void bitiflush() { int filled, discard, dbytes, - i, k, treg; + i, k; + unsigned int treg; byte *bp; filled = 24 - bits; /* how many bits at the MS part of reg @@ -179,16 +181,16 @@ void bitiflush() { } /* check consistency */ if ( filled-k > 7 ) { - fprintf(stderr,"bitiflush: inconsistent bits=%d filled=%d k=%d\n",bits,filled,k); - exit(10); + fprintf(stderr,"bitiflush: inconsistent bits=%d filled=%d k=%d\n",bits,filled,k); + exit(10); } discard = filled-k; if ( treg != (reg<