Skip to content
This repository has been archived by the owner on Sep 28, 2019. It is now read-only.

Commit

Permalink
2017-04-01 Jonathan Yong <10walls@gmail.com>
Browse files Browse the repository at this point in the history
	* ssp.c (__guard_setup): Suppress unused variable warning.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246636 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
jyong committed Apr 2, 2017
1 parent e357eb1 commit 7714131
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions 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 <jakub@redhat.com>

PR other/79046
Expand Down
3 changes: 1 addition & 2 deletions libssp/ssp.c
Expand Up @@ -72,7 +72,6 @@ static void __attribute__ ((constructor))
__guard_setup (void)
{
unsigned char *p;
int fd;

if (__stack_chk_guard != 0)
return;
Expand All @@ -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,
Expand Down

0 comments on commit 7714131

Please sign in to comment.