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 <corinna@vinschen.de>
This commit is contained in:
		
							parent
							
								
									8169e39abf
								
							
						
					
					
						commit
						3ca80b360c
					
				|  | @ -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 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue