Commit 5738fe88 by Jonathan Yong Committed by Jonathan Yong

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
parent 97038d11
2017-04-01 Jonathan Yong <10walls@gmail.com>
* ssp.c (__guard_setup): Suppress unused variable warning.
2017-01-17 Jakub Jelinek <jakub@redhat.com> 2017-01-17 Jakub Jelinek <jakub@redhat.com>
PR other/79046 PR other/79046
......
...@@ -72,7 +72,6 @@ static void __attribute__ ((constructor)) ...@@ -72,7 +72,6 @@ static void __attribute__ ((constructor))
__guard_setup (void) __guard_setup (void)
{ {
unsigned char *p; unsigned char *p;
int fd;
if (__stack_chk_guard != 0) if (__stack_chk_guard != 0)
return; return;
...@@ -91,7 +90,7 @@ __guard_setup (void) ...@@ -91,7 +90,7 @@ __guard_setup (void)
CryptReleaseContext(hprovider, 0); CryptReleaseContext(hprovider, 0);
} }
#else #else
fd = open ("/dev/urandom", O_RDONLY); int fd = open ("/dev/urandom", O_RDONLY);
if (fd != -1) if (fd != -1)
{ {
ssize_t size = read (fd, &__stack_chk_guard, ssize_t size = read (fd, &__stack_chk_guard,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment