summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-02-01 08:06:17 +0000
committerngie <ngie@FreeBSD.org>2016-02-01 08:06:17 +0000
commit5ca894a86d88814ef41a76421f3a6a35456436d6 (patch)
tree9e585eacbef39846d2902966d2a0fb0e821b1e91
parentb1ee4ad409df5a3440c668cf19bec883afa7310c (diff)
downloadFreeBSD-src-5ca894a86d88814ef41a76421f3a6a35456436d6.zip
FreeBSD-src-5ca894a86d88814ef41a76421f3a6a35456436d6.tar.gz
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
-rw-r--r--sbin/swapon/swapon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/swapon/swapon.c b/sbin/swapon/swapon.c
index f581431..03b2b09 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, *Tflag, *sflag;
char *p, *args, *token, *string, *ops;
- int argsize, pagesize;
+ int pagesize;
size_t pagesize_len;
u_long ul;
@@ -389,7 +389,7 @@ swap_on_geli_args(const char *mntops)
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,
sflag, sectorsize_str);
OpenPOWER on IntegriCloud