Subject: | gcc 4.9.2 warnings |
Some warnings for bzip2-src/compress.c, don't off-hand know what to do with them. The easy thing would be to zero them, but would that be what the code expects, don't know. Maybe the bzip2 upstream wants to know?
compress.c: In function 'BZ2_compressBlock':
compress.c:391:54: warning: 'cost[5]' may be used uninitialized in this functio\
n [-Wmaybe-uninitialized]
for (t = 0; t < nGroups; t++) cost[t] += s->len[t][icv];
^
compress.c:256:11: note: 'cost[5]' was declared here
UInt16 cost[BZ_N_GROUPS];
^
compress.c:401:25: warning: 'cost[4]' may be used uninitialized in this functio\
n [-Wmaybe-uninitialized]
if (cost[t] < bc) { bc = cost[t]; bt = t; };
^
compress.c:256:11: note: 'cost[4]' was declared here
UInt16 cost[BZ_N_GROUPS];
^
compress.c:401:25: warning: 'cost[3]' may be used uninitialized in this functio\
n [-Wmaybe-uninitialized]
if (cost[t] < bc) { bc = cost[t]; bt = t; };
^
compress.c:256:11: note: 'cost[3]' was declared here
UInt16 cost[BZ_N_GROUPS];
^