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
This commit is contained in:
parent
3f036df665
commit
59c83c1cde
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290184
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user