Skip to content

Commit b21c848

Browse files
Remove unused variables in test (#5808)
Fixes several warnings in Developer builds about variables declared past the start of the function
1 parent 3776a66 commit b21c848

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

test/dsets.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16893,21 +16893,17 @@ test_vds_shared_strings(hid_t fapl)
1689316893
*/
1689416894
char file_name[64];
1689516895
char dset_name[64];
16896-
int shared_file_count = 0;
16897-
int shared_dset_count = 0;
1689816896

1689916897
for (int i = 0; i < NUM_MAPPINGS_MANY; i++) {
1690016898
if (i % 10 == 0) {
1690116899
strcpy(file_name, "shared_file.h5");
16902-
shared_file_count++;
1690316900
}
1690416901
else {
1690516902
snprintf(file_name, sizeof(file_name), "file_%d.h5", i);
1690616903
}
1690716904

1690816905
if (i % 5 == 0) {
1690916906
strcpy(dset_name, "/shared_dataset");
16910-
shared_dset_count++;
1691116907
}
1691216908
else {
1691316909
snprintf(dset_name, sizeof(dset_name), "/dataset_%d", i);

0 commit comments

Comments
 (0)