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:
parent
97038d11ed
commit
5738fe8899
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user