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...":https://support.plan.io/news/187
Bug #886330
closedgcc10 -O3 cvercmp warning
0%
Description
With gcc10 and -O3:
../../../../src/dependencies/cvercmp/cvercmp.c: In function ‘cvercmp_ver_subtokenize’:
../../../../src/dependencies/cvercmp/cvercmp.c:289:5: error: ‘strncpy’ destination unchanged after copying no bytes [-Werror=stringop-truncation]
289 | strncpy(tokens[i], ver + idx, tokenlen);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../src/dependencies/cvercmp/cvercmp.c:289:5: error: ‘strncpy’ destination unchanged after copying no bytes [-Werror=stringop-truncation]
cc1: all warnings being treated as errors
The error is bogus. In reality tokenlen can never be zero, and I don't get this warning with the upstream project.
Files
Updated by Marko Lindqvist over 2 years ago
- File 0009-Fix-cvercmp-compiler-warning-with-gcc-10-and-O3.patch 0009-Fix-cvercmp-compiler-warning-with-gcc-10-and-O3.patch added
- Status changed from In Progress to Resolved
Updated by Marko Lindqvist over 2 years ago
- Status changed from Resolved to Closed
- Assignee set to Marko Lindqvist