From 23856afcacc82c6c4011098833b9b9e0e8096173 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 14 Nov 2019 03:08:57 -0800 Subject: [PATCH] FIO: Avoid compiler warning on never executed code path (Tony Nicholson) As suggested in #766 --- sim_fio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim_fio.c b/sim_fio.c index 97c1c0ca..9bfecde3 100644 --- a/sim_fio.c +++ b/sim_fio.c @@ -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);