Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2022-12-07 23:17:10 +0300
committerCorinna Vinschen <corinna@vinschen.de>2022-12-07 23:18:24 +0300
commit792b1c6a6d4acee79e1287369498f6ad8e75c1bf (patch)
tree8e490dd1e8bdcd5f348ded12545073231a81b0db /winsup/cygwin/random.cc
parent0b09753a3f0c17164c877cf5ae9ebbc617bcf302 (diff)
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>
Diffstat (limited to 'winsup/cygwin/random.cc')
-rw-r--r--winsup/cygwin/random.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/random.cc b/winsup/cygwin/random.cc
index 163fc040c..6dd7e1d8d 100644
--- a/winsup/cygwin/random.cc
+++ b/winsup/cygwin/random.cc
@@ -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