This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 3/5] Cygwin: suppress GCC 8.3 errors with -Warray-bounds


---
 winsup/utils/dumper.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/winsup/utils/dumper.cc b/winsup/utils/dumper.cc
index 14b993316..f71bdda8b 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
 
-- 
2.21.0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]