Removes a warning.

This commit is contained in:
Andrea Mazzoleni 2013-03-01 00:14:10 +01:00
parent e0acbda4bd
commit 266c6a1da1

View file

@ -171,6 +171,8 @@ int parity_chsize(struct snapraid_parity* parity, data_off_t size, data_off_t* o
ret = ftruncate(parity->f, size);
}
#else
(void)skip_fallocate; /* avoid the warning */
/* allocate using a sparse file */
call = "ftruncate";
ret = ftruncate(parity->f, size);