bzip2: Suppress clang-analyzer warnings
This commit is contained in:
parent
e090f348d3
commit
91e4d27765
@ -444,6 +444,10 @@ int BZ_API(BZ2_bzCompress) ( bz_stream *strm, int action )
|
|||||||
if (s->avail_in_expect != s->strm->avail_in)
|
if (s->avail_in_expect != s->strm->avail_in)
|
||||||
return BZ_SEQUENCE_ERROR;
|
return BZ_SEQUENCE_ERROR;
|
||||||
progress = handle_compress ( strm );
|
progress = handle_compress ( strm );
|
||||||
|
#ifdef __clang_analyzer__
|
||||||
|
/* Tolerate deadcode.DeadStores to avoid modifying upstream. */
|
||||||
|
(void)progress;
|
||||||
|
#endif
|
||||||
if (s->avail_in_expect > 0 || !isempty_RL(s) ||
|
if (s->avail_in_expect > 0 || !isempty_RL(s) ||
|
||||||
s->state_out_pos < s->numZ) return BZ_FLUSH_OK;
|
s->state_out_pos < s->numZ) return BZ_FLUSH_OK;
|
||||||
s->mode = BZ_M_RUNNING;
|
s->mode = BZ_M_RUNNING;
|
||||||
|
@ -151,6 +151,10 @@ void generateMTFValues ( EState* s )
|
|||||||
UChar* block = s->block;
|
UChar* block = s->block;
|
||||||
UInt16* mtfv = s->mtfv;
|
UInt16* mtfv = s->mtfv;
|
||||||
|
|
||||||
|
#ifdef __clang_analyzer__
|
||||||
|
memset(yy, 0, sizeof(yy));
|
||||||
|
#endif
|
||||||
|
|
||||||
makeMaps_e ( s );
|
makeMaps_e ( s );
|
||||||
EOB = s->nInUse+1;
|
EOB = s->nInUse+1;
|
||||||
|
|
||||||
@ -223,6 +227,10 @@ void generateMTFValues ( EState* s )
|
|||||||
zPend = (zPend - 2) / 2;
|
zPend = (zPend - 2) / 2;
|
||||||
};
|
};
|
||||||
zPend = 0;
|
zPend = 0;
|
||||||
|
#ifdef __clang_analyzer__
|
||||||
|
/* Tolerate deadcode.DeadStores to avoid modifying upstream. */
|
||||||
|
(void)zPend;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
mtfv[wr] = EOB; wr++; s->mtfFreq[EOB]++;
|
mtfv[wr] = EOB; wr++; s->mtfFreq[EOB]++;
|
||||||
|
Loading…
Reference in New Issue
Block a user