Cygwin: add missing pragma
Add missing "#pragma GCC diagnostic push" to the pragma bracket guarding the srandom call. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
0b09753a3f
commit
792b1c6a6d
|
@ -307,6 +307,7 @@ srandomdev()
|
|||
gettimeofday(&tv, NULL);
|
||||
/* Avoid a compiler warning when we really want to get at the
|
||||
junk in an uninitialized variable. */
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||
srandom((getpid() << 16) ^ tv.tv_sec ^ tv.tv_usec ^ junk);
|
||||
#pragma GCC diagnostic pop
|
||||
|
|
Loading…
Reference in New Issue