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
This commit is contained in:
Jonathan Yong 2017-04-02 00:35:58 +00:00 committed by Jonathan Yong
parent 97038d11ed
commit 5738fe8899
2 changed files with 5 additions and 2 deletions

View File

@ -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 <jakub@redhat.com>
PR other/79046

View File

@ -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,