Date: Fri, 30 Oct 2015 08:01:53 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r290184 - head/contrib/netbsd-tests/lib/libc/ssp Message-ID: <201510300801.t9U81rQT030511@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Fri Oct 30 08:01:53 2015 New Revision: 290184 URL: https://svnweb.freebsd.org/changeset/base/290184 Log: Fix a set but not used variable warning flagged by gcc 4.9 with lib/libc/ssp/h_readlink MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Modified: head/contrib/netbsd-tests/lib/libc/ssp/h_readlink.c Modified: head/contrib/netbsd-tests/lib/libc/ssp/h_readlink.c ============================================================================== --- head/contrib/netbsd-tests/lib/libc/ssp/h_readlink.c Fri Oct 30 07:48:03 2015 (r290183) +++ head/contrib/netbsd-tests/lib/libc/ssp/h_readlink.c Fri Oct 30 08:01:53 2015 (r290184) @@ -46,7 +46,6 @@ main(int argc, char *argv[]) { #ifdef __FreeBSD__ char b[512], *sl; - int n; size_t len = atoi(argv[1]); sl = malloc(len); memset(sl, 'a', len); @@ -54,7 +53,7 @@ main(int argc, char *argv[]) unlink("symlink"); if (symlink(sl, "symlink") == -1) err(1, "symlink()"); - n = readlink("symlink", b, len); + (void)readlink("symlink", b, len); unlink("symlink"); #else char b[MAXPATHLEN];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510300801.t9U81rQT030511>