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...
Feature #853705
Avoid sign-compare compiler warning in fc_has_capability()
Start date:
Due date:
% Done:
0%
Estimated time:
Description
With -Wsign-compare enabled we currently get:
../../../src/utility/capability.c: In function ‘fc_has_capability’:
../../../src/utility/capability.c:59:22: error: comparison of integer expressions of different signedness: ‘long int’ and ‘size_t’ {aka ‘const long unsigned int’} [-Werror=sign-compare]
59 | if ((next-capstr cap_len) && strncmp(cap, capstr, cap_len)0) {
History
#1
Updated by Marko Lindqvist over 2 years ago
- File 0034-Fix-sign-compare-compiler-warning-at-fc_has_capabili.patch 0034-Fix-sign-compare-compiler-warning-at-fc_has_capabili.patch added
- Status changed from In Progress to Resolved
#2
Updated by Marko Lindqvist over 2 years ago
- Status changed from Resolved to In Progress
Added assert() is overzealous (should be '>=' instead of '>')
#3
Updated by Marko Lindqvist over 2 years ago
- File 0022-Fix-sign-compare-compiler-warning-at-fc_has_capabili.patch 0022-Fix-sign-compare-compiler-warning-at-fc_has_capabili.patch added
- Status changed from In Progress to Resolved
#4
Updated by Marko Lindqvist over 2 years ago
- Status changed from Resolved to Closed
- Assignee set to Marko Lindqvist