Ticket #4358 (closed defect: fixed)
Variable redeclared in filevercmp_test5
Reported by: | ats | Owned by: | andrew_b |
---|---|---|---|
Priority: | minor | Milestone: | 4.8.29 |
Component: | tests | Version: | 4.8.28 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
In mc-4.8.28, the test filevercmp_test5 in tests/lib/strutil/filevercmp.c declares:
size_t _i;
However, the name _i is also used inside check's START_TEST macro, so GCC 11.2 complains:
filevercmp.c: In function ‘filevercmp_test5_fn’:
filevercmp.c:356:12: error: ‘_i’ redeclared as different kind of symbol
I've fixed this in the attached patch by renaming _i and _j, but you may prefer a different new name...
Attachments
Change History
Changed 3 years ago by ats
- Attachment checki.diff added
comment:2 Changed 3 years ago by andrew_b
- Status changed from new to accepted
- Owner set to andrew_b
- Blocked By 4357 added
- Milestone changed from Future Releases to 4.8.29
Thahks!
Applied in 4357_cleanup branch.
comment:3 Changed 3 years ago by andrew_b
Ticket #4359 has been marked as a duplicate of this ticket.
comment:4 Changed 3 years ago by andrew_b
Ticket #4366 has been marked as a duplicate of this ticket.
Note: See
TracTickets for help on using
tickets.
Patch: rename _i/_j to ii/jj