diff options
author | ngie <ngie@FreeBSD.org> | 2016-03-12 18:55:48 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-03-12 18:55:48 +0000 |
commit | e3064c82179f47f3fab679c9c63d247c6c64a248 (patch) | |
tree | 6374c9b36837ed22419f11c8da8abc0a27836fa2 /sbin | |
parent | 86df18f4d72ccc66984c67e64664b17ebd03c806 (diff) | |
download | FreeBSD-src-e3064c82179f47f3fab679c9c63d247c6c64a248.zip FreeBSD-src-e3064c82179f47f3fab679c9c63d247c6c64a248.tar.gz |
MFC r295121:
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
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/swapon/swapon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/swapon/swapon.c b/sbin/swapon/swapon.c index 6351053..db01223 100644 --- a/sbin/swapon/swapon.c +++ b/sbin/swapon/swapon.c @@ -315,7 +315,7 @@ swap_on_geli_args(const char *mntops) const char *aalgo, *ealgo, *keylen_str, *sectorsize_str; const char *aflag, *eflag, *lflag, *sflag; char *p, *args, *token, *string, *ops; - int argsize, pagesize; + int pagesize; size_t pagesize_len; u_long ul; @@ -387,7 +387,7 @@ swap_on_geli_args(const char *mntops) sectorsize_str = p; } - argsize = asprintf(&args, "%s%s%s%s%s%s%s%s -d", + (void)asprintf(&args, "%s%s%s%s%s%s%s%s -d", aflag, aalgo, eflag, ealgo, lflag, keylen_str, sflag, sectorsize_str); |