mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
Delete argsize to fix a -Wunused-but-set-variable warning with gcc 4.9
The variable isn't actually checked -- just the end result which gets returned from the function Differential Revision: https://reviews.freebsd.org/D5156 Reviewed by: araujo, delphij MFC after: 1 month Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
9650034d1a
commit
24cd0f8516
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295121
|
@ -315,7 +315,7 @@ swap_on_geli_args(const char *mntops)
|
||||||
const char *aalgo, *ealgo, *keylen_str, *sectorsize_str;
|
const char *aalgo, *ealgo, *keylen_str, *sectorsize_str;
|
||||||
const char *aflag, *eflag, *lflag, *Tflag, *sflag;
|
const char *aflag, *eflag, *lflag, *Tflag, *sflag;
|
||||||
char *p, *args, *token, *string, *ops;
|
char *p, *args, *token, *string, *ops;
|
||||||
int argsize, pagesize;
|
int pagesize;
|
||||||
size_t pagesize_len;
|
size_t pagesize_len;
|
||||||
u_long ul;
|
u_long ul;
|
||||||
|
|
||||||
|
@ -389,7 +389,7 @@ swap_on_geli_args(const char *mntops)
|
||||||
sectorsize_str = p;
|
sectorsize_str = p;
|
||||||
}
|
}
|
||||||
|
|
||||||
argsize = asprintf(&args, "%s%s%s%s%s%s%s%s%s -d",
|
(void)asprintf(&args, "%s%s%s%s%s%s%s%s%s -d",
|
||||||
aflag, aalgo, eflag, ealgo, lflag, keylen_str, Tflag,
|
aflag, aalgo, eflag, ealgo, lflag, keylen_str, Tflag,
|
||||||
sflag, sectorsize_str);
|
sflag, sectorsize_str);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue