public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: suppress GCC 8.3 errors with -Warray-bounds
@ 2019-07-17 15:09 Ken Brown
0 siblings, 0 replies; only message in thread
From: Ken Brown @ 2019-07-17 15:09 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=d730fa7b9cac901f2a682affefbdf772a170786c
commit d730fa7b9cac901f2a682affefbdf772a170786c
Author: Ken Brown <kbrown@cornell.edu>
Date: Mon Jul 15 16:50:54 2019 -0400
Cygwin: suppress GCC 8.3 errors with -Warray-bounds
Diff:
---
winsup/utils/dumper.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/winsup/utils/dumper.cc b/winsup/utils/dumper.cc
index 14b9933..f71bdda 100644
--- a/winsup/utils/dumper.cc
+++ b/winsup/utils/dumper.cc
@@ -417,6 +417,7 @@ dumper::dump_thread (asection * to, process_thread * thread)
bfd_putl32 (NT_WIN32PSTATUS, header.elf_note_header.type);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
+#pragma GCC diagnostic ignored "-Warray-bounds"
strncpy (header.elf_note_header.name, "win32thread", NOTE_NAME_SIZE);
#pragma GCC diagnostic pop
@@ -483,6 +484,7 @@ dumper::dump_module (asection * to, process_module * module)
bfd_putl32 (NT_WIN32PSTATUS, header.elf_note_header.type);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
+#pragma GCC diagnostic ignored "-Warray-bounds"
strncpy (header.elf_note_header.name, "win32module", NOTE_NAME_SIZE);
#pragma GCC diagnostic pop
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-07-17 15:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-17 15:09 [newlib-cygwin] Cygwin: suppress GCC 8.3 errors with -Warray-bounds Ken Brown
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).