From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 020F8385801E; Thu, 26 Aug 2021 20:22:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 020F8385801E Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: dumper: fix up GCC pragma for g++ 11.2 X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 8169e39abfd068d1b280ac6ffc5a162e38c2202a X-Git-Newrev: 3ca80b360c2b294ad781c9c5f76d3b172a61c6dc Message-Id: <20210826202207.020F8385801E@sourceware.org> Date: Thu, 26 Aug 2021 20:22:07 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2021 20:22:07 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=3ca80b360c2b294ad781c9c5f76d3b172a61c6dc commit 3ca80b360c2b294ad781c9c5f76d3b172a61c6dc Author: Corinna Vinschen Date: Thu Aug 26 22:15:49 2021 +0200 Cygwin: dumper: fix up GCC pragma for g++ 11.2 The GCC diagnostic ignored "-Wstringop-overflow" pragma doesn't work as expected anymore. Use the still working expression. Signed-off-by: Corinna Vinschen Diff: --- winsup/utils/dumper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/utils/dumper.cc b/winsup/utils/dumper.cc index bc6c68a53..12124e26a 100644 --- a/winsup/utils/dumper.cc +++ b/winsup/utils/dumper.cc @@ -557,7 +557,7 @@ dumper::dump_module (asection * to, process_module * module) bfd_putl32 (note_length, header.elf_note_header.descsz); bfd_putl32 (NT_WIN32PSTATUS, header.elf_note_header.type); #pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstringop-overflow" +#pragma GCC diagnostic warning "-Wstringop-overflow=1" #pragma GCC diagnostic ignored "-Warray-bounds" strncpy (header.elf_note_header.name, "win32module", NOTE_NAME_SIZE); #pragma GCC diagnostic pop