From 5738fe8899ffc59fddc32dc05068785f5e74dc5e Mon Sep 17 00:00:00 2001 From: Jonathan Yong <10walls@gmail.com> Date: Sun, 2 Apr 2017 00:35:58 +0000 Subject: [PATCH] ssp.c (__guard_setup): Suppress unused variable warning. 2017-04-01 Jonathan Yong <10walls@gmail.com> * ssp.c (__guard_setup): Suppress unused variable warning. From-SVN: r246636 --- libssp/ChangeLog | 4 ++++ libssp/ssp.c | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libssp/ChangeLog b/libssp/ChangeLog index d851d4bf24d..65733b08ac6 100644 --- a/libssp/ChangeLog +++ b/libssp/ChangeLog @@ -1,3 +1,7 @@ +2017-04-01 Jonathan Yong <10walls@gmail.com> + + * ssp.c (__guard_setup): Suppress unused variable warning. + 2017-01-17 Jakub Jelinek PR other/79046 diff --git a/libssp/ssp.c b/libssp/ssp.c index d1da6615632..536fb917a49 100644 --- a/libssp/ssp.c +++ b/libssp/ssp.c @@ -72,7 +72,6 @@ static void __attribute__ ((constructor)) __guard_setup (void) { unsigned char *p; - int fd; if (__stack_chk_guard != 0) return; @@ -91,7 +90,7 @@ __guard_setup (void) CryptReleaseContext(hprovider, 0); } #else - fd = open ("/dev/urandom", O_RDONLY); + int fd = open ("/dev/urandom", O_RDONLY); if (fd != -1) { ssize_t size = read (fd, &__stack_chk_guard, -- 2.30.2