public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] Cygwin: add missing pragma
Date: Wed,  7 Dec 2022 20:30:41 +0000 (GMT)	[thread overview]
Message-ID: <20221207203041.81E64381EC80@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=792b1c6a6d4acee79e1287369498f6ad8e75c1bf

commit 792b1c6a6d4acee79e1287369498f6ad8e75c1bf
Author:     Corinna Vinschen <corinna@vinschen.de>
AuthorDate: Wed Dec 7 21:17:10 2022 +0100
Commit:     Corinna Vinschen <corinna@vinschen.de>
CommitDate: Wed Dec 7 21:18:24 2022 +0100

    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>

Diff:
---
 winsup/cygwin/random.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/winsup/cygwin/random.cc b/winsup/cygwin/random.cc
index 163fc040cef5..6dd7e1d8debe 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

                 reply	other threads:[~2022-12-07 20:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221207203041.81E64381EC80@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).