FIO: Avoid compiler warning on never executed code path (Tony Nicholson)
As suggested in #766
This commit is contained in:
parent
43b011883e
commit
23856afcac
1 changed files with 1 additions and 1 deletions
|
@ -821,7 +821,7 @@ if (strchr (parts, 't') || strchr (parts, 'z')) {
|
|||
memset (&filestat, 0, sizeof (filestat));
|
||||
(void)stat (fullpath, &filestat);
|
||||
if (sizeof (filestat.st_size) == 4)
|
||||
sprintf (filesizebuf, "%ld ", filestat.st_size);
|
||||
sprintf (filesizebuf, "%ld ", (long)filestat.st_size);
|
||||
else
|
||||
sprintf (filesizebuf, "%" LL_FMT "d ", (LL_TYPE)filestat.st_size);
|
||||
tm = localtime (&filestat.st_mtime);
|
||||
|
|
Loading…
Add table
Reference in a new issue