Task #133060 - fixed.err
back to task #133060download
Error: COMPILER_WARNING:
zchunk-1.5.1/src/lib/dl/range.c: scope_hint: In function ‘zck_get_range_char’
zchunk-1.5.1/src/lib/dl/range.c:163:9: warning[-Wunused-but-set-variable=]: variable ‘count’ set but not used
# 163 | int count = 0;
# | ^~~~~
# 161| }
# 162| int loc = 0;
# 163|-> int count = 0;
# 164| zckRangeItem *ri = range->first;
# 165| while(ri) {
Error: COMPILER_WARNING:
zchunk-1.5.1/src/lib/dl/range.c: scope_hint: In function ‘zck_get_range_char’
zchunk-1.5.1/src/lib/dl/range.c:188:18: warning[-Wstringop-overflow=]: writing 1 byte into a region of size 0
# 188 | output[loc-1]='\0'; // Remove final comma
# | ^
zchunk-1.5.1/src/lib/zck.c:132:17: note: at offset -1 into destination object of size 32768 allocated by ‘calloc’
# 132 | void *ret = calloc(1, size);
# | ^
# 186| ri = ri->next;
# 187| }
# 188|-> output[loc-1]='\0'; // Remove final comma
# 189| output = zrealloc(output, loc);
# 190| return output;