From 266c6a1da1614094d1e32630d231b110c2010357 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Fri, 1 Mar 2013 00:14:10 +0100 Subject: [PATCH] Removes a warning. --- parity.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parity.c b/parity.c index a5b0ca6a..ecd81a70 100644 --- a/parity.c +++ b/parity.c @@ -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);