diff options
author | Alan Modra <amodra@gmail.com> | 2018-04-23 23:47:22 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-04-23 23:50:13 +0930 |
commit | b9f26d2e29bb56a0404216c5612d6d7fee54a769 (patch) | |
tree | bace6e181bf3c1c0c5b20a26ec2c64d7040ff73a /bfd/elf.c | |
parent | bf82069dce1b1a88560e5d7320342c78372b627e (diff) | |
download | binutils-b9f26d2e29bb56a0404216c5612d6d7fee54a769.zip binutils-b9f26d2e29bb56a0404216c5612d6d7fee54a769.tar.gz binutils-b9f26d2e29bb56a0404216c5612d6d7fee54a769.tar.bz2 |
Revert bfd part of "Silence gcc-8 warnings"
The gcc warning has been fixed, and the patch regressed builds with
some older versions of gcc.
* elf-linux-core.h: Revert last change.
* elf.c: Likewise.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -10549,12 +10549,8 @@ elfcore_write_prpsinfo (bfd *abfd, #endif memset (&data, 0, sizeof (data)); -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wpragmas" -#pragma GCC diagnostic ignored "-Wstringop-truncation" strncpy (data.pr_fname, fname, sizeof (data.pr_fname)); strncpy (data.pr_psargs, psargs, sizeof (data.pr_psargs)); -#pragma GCC diagnostic pop return elfcore_write_note (abfd, buf, bufsiz, "CORE", note_type, &data, sizeof (data)); } |