HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...
Bug #853412
astr_reserve() sign-compare compiler warning
0%
Description
With -Wsign-compare compiler warnings enabled:
../../../src/utility/astring.c: In function ‘astr_reserve’:
../../../src/utility/astring.c:177:22: error: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Werror=sign-compare]
177 | astr->n_alloc = (n > n1) ? n : n1;
| ^
../../../src/utility/astring.c:177:34: error: operand of ?: changes signedness from ‘int’ to ‘size_t’ {aka ‘long unsigned int’} due to unsignedness of other operand [-Werror=sign-compare]
177 | astr->n_alloc = (n > n1) ? n : n1;
History
#1
Updated by Marko Lindqvist over 2 years ago
- File 0021-Fix-astr_reserve-sign-compare-compiler-warning.patch 0021-Fix-astr_reserve-sign-compare-compiler-warning.patch added
- Status changed from In Progress to Resolved
- Sprint/Milestone set to 2.6.2
#2
Updated by Marko Lindqvist over 2 years ago
- Status changed from Resolved to Closed
- Assignee set to Marko Lindqvist