mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Removes a warning.
This commit is contained in:
parent
e0acbda4bd
commit
266c6a1da1
1 changed files with 2 additions and 0 deletions
2
parity.c
2
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue