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-linux-core.h | |
parent | bf82069dce1b1a88560e5d7320342c78372b627e (diff) | |
download | binutils-gdb-b9f26d2e29bb56a0404216c5612d6d7fee54a769.tar.gz |
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-linux-core.h')
-rw-r--r-- | bfd/elf-linux-core.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/bfd/elf-linux-core.h b/bfd/elf-linux-core.h index 25d33f62cc6..0a5d76fe9df 100644 --- a/bfd/elf-linux-core.h +++ b/bfd/elf-linux-core.h @@ -69,12 +69,8 @@ swap_linux_prpsinfo32_ugid32_out bfd_put_32 (obfd, from->pr_ppid, to->pr_ppid); bfd_put_32 (obfd, from->pr_pgrp, to->pr_pgrp); bfd_put_32 (obfd, from->pr_sid, to->pr_sid); -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wpragmas" -#pragma GCC diagnostic ignored "-Wstringop-truncation" strncpy (to->pr_fname, from->pr_fname, sizeof (to->pr_fname)); strncpy (to->pr_psargs, from->pr_psargs, sizeof (to->pr_psargs)); -#pragma GCC diagnostic pop } /* External 32-bit structure for PRPSINFO. This structure is @@ -125,12 +121,8 @@ swap_linux_prpsinfo32_ugid16_out bfd_put_32 (obfd, from->pr_ppid, to->pr_ppid); bfd_put_32 (obfd, from->pr_pgrp, to->pr_pgrp); bfd_put_32 (obfd, from->pr_sid, to->pr_sid); -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wpragmas" -#pragma GCC diagnostic ignored "-Wstringop-truncation" strncpy (to->pr_fname, from->pr_fname, sizeof (to->pr_fname)); strncpy (to->pr_psargs, from->pr_psargs, sizeof (to->pr_psargs)); -#pragma GCC diagnostic pop } /* External 64-bit structure for PRPSINFO. This structure is @@ -182,12 +174,8 @@ swap_linux_prpsinfo64_ugid32_out bfd_put_32 (obfd, from->pr_ppid, to->pr_ppid); bfd_put_32 (obfd, from->pr_pgrp, to->pr_pgrp); bfd_put_32 (obfd, from->pr_sid, to->pr_sid); -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wpragmas" -#pragma GCC diagnostic ignored "-Wstringop-truncation" strncpy (to->pr_fname, from->pr_fname, sizeof (to->pr_fname)); strncpy (to->pr_psargs, from->pr_psargs, sizeof (to->pr_psargs)); -#pragma GCC diagnostic pop } /* External 64-bit structure for PRPSINFO. This structure is @@ -239,12 +227,8 @@ swap_linux_prpsinfo64_ugid16_out bfd_put_32 (obfd, from->pr_ppid, to->pr_ppid); bfd_put_32 (obfd, from->pr_pgrp, to->pr_pgrp); bfd_put_32 (obfd, from->pr_sid, to->pr_sid); -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wpragmas" -#pragma GCC diagnostic ignored "-Wstringop-truncation" strncpy (to->pr_fname, from->pr_fname, sizeof (to->pr_fname)); strncpy (to->pr_psargs, from->pr_psargs, sizeof (to->pr_psargs)); -#pragma GCC diagnostic pop } #endif |