1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 11:46:37 +00:00

Remove compiler warnings generated by newer clang compiler

This commit is contained in:
Mark Pizzolato
2013-03-13 16:38:30 -07:00
parent 147ca8ced2
commit 3dea6056e6
2 changed files with 6 additions and 3 deletions

View File

@@ -910,11 +910,12 @@ if (sim_switches & SWMASK ('C')) { /* create vhd disk & cop
uptr->flags = saved_unit_flags;
}
}
if (!sim_quiet)
if (!sim_quiet) {
if (r == SCPE_OK)
printf ("\n%s%d: Copied %dMB. Done.\n", sim_dname (dptr), (int)(uptr-dptr->units), (int)(((t_addr)lba*sector_size)/1000000));
else
printf ("\n%s%d: Error copying: %s.\n", sim_dname (dptr), (int)(uptr-dptr->units), sim_error_text (r));
}
free (copy_buf);
sim_vhd_disk_close (vhd);
sim_disk_detach (uptr);