]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: add missing pragma
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 7 Dec 2022 20:17:10 +0000 (21:17 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 7 Dec 2022 20:18:24 +0000 (21:18 +0100)
Add missing "#pragma GCC diagnostic push" to the pragma bracket
guarding the srandom call.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/random.cc

index 163fc040cef514d6cdfe9728e85a3ed19769a168..6dd7e1d8debe69a23afad04bd6e4a004b84e5ef7 100644 (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
This page took 0.031142 seconds and 5 git commands to generate.