From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 81E64381EC80; Wed, 7 Dec 2022 20:30:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 81E64381EC80 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670445041; bh=CFv3Amyj5zj21tur0V6wxBERb7GXMgRDqmJ/r4yUkXc=; h=From:To:Subject:Date:From; b=PUAk9abxleNtQoh5UsEzohG2SUZmYcmfhCN7i1BSfOXP5C9tS5E8bPY2PUiupkMKg ZOSIYddPot4MrF34kG1Wehf3Xm8QOPjdWPBaiUJYZVnzOX1eh6YydHxRvmALZ2POK6 Wme1L3cOmZNWRy69L/Rr+tRbruROHGHjHyP8B+U4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: add missing pragma X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 0b09753a3f0c17164c877cf5ae9ebbc617bcf302 X-Git-Newrev: 792b1c6a6d4acee79e1287369498f6ad8e75c1bf Message-Id: <20221207203041.81E64381EC80@sourceware.org> Date: Wed, 7 Dec 2022 20:30:41 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D792b1c6a6d4= acee79e1287369498f6ad8e75c1bf commit 792b1c6a6d4acee79e1287369498f6ad8e75c1bf Author: Corinna Vinschen AuthorDate: Wed Dec 7 21:17:10 2022 +0100 Commit: Corinna Vinschen CommitDate: Wed Dec 7 21:18:24 2022 +0100 Cygwin: add missing pragma =20 Add missing "#pragma GCC diagnostic push" to the pragma bracket guarding the srandom call. =20 Signed-off-by: Corinna Vinschen 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