-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variable redeclared in filevercmp_test5 #4358
Labels
area: tests
Testing Midnight Commander
prio: low
Minor problem or easily worked around
ver: 4.8.28
Reproducible in version 4.8.28
Milestone
Comments
Patch: rename _i/_j to ii/jj |
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: tests
Testing Midnight Commander
prio: low
Minor problem or easily worked around
ver: 4.8.28
Reproducible in version 4.8.28
Important
This issue was migrated from Trac:
ats
(ats-mc@….org)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...
Note
Original attachments:
ats
(ats-mc@….org) onMar 27, 2022 at 14:44 UTC
The text was updated successfully, but these errors were encountered: