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:
Corinna Vinschen 2022-12-07 21:17:10 +01:00
parent 0b09753a3f
commit 792b1c6a6d
1 changed files with 1 additions and 0 deletions

View File

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