Skip Menu |

This queue is for tickets about the Compress-Bzip2 CPAN distribution.

Report information
The Basics
Id: 105647
Status: resolved
Priority: 0/
Queue: Compress-Bzip2

People
Owner: Nobody in particular
Requestors: JHI [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.22
Fixed in: (no value)



Subject: gcc 5.1.0 warnings
compress.c: In function 'BZ2_compressBlock': compress.c:391:54: warning: 'cost[5]' may be used uninitialized in this function [-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[3]' may be used uninitialized in this function [-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]; ^ compress.c:401:25: warning: 'cost[2]' may be used uninitialized in this function [-Wmaybe-uninitialized] if (cost[t] < bc) { bc = cost[t]; bt = t; }; ^ compress.c:256:11: note: 'cost[2]' was declared here UInt16 cost[BZ_N_GROUPS]; ^
This is not really a practical problem. The optimizer does not see the max nGroups value which is set dynamically. But I fixed it in 2.24 -- Reini Urban