logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0002-Adjust-style-to-prevent-gcc-warning.patch (993B)


  1. From 7e7d7da3e8d453d1125488cc5cd7c42293b62934 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Fri, 5 Jun 2020 01:17:51 -0700
  4. Subject: [PATCH] Adjust style to prevent gcc warning
  5. This is still implementation-defined, but matches the style used
  6. elsewhere in this file and prevents a conversion overflow warning.
  7. ---
  8. bfd/elf.c | 3 ++-
  9. 1 file changed, 2 insertions(+), 1 deletion(-)
  10. diff --git a/bfd/elf.c b/bfd/elf.c
  11. index 84a5d94281..5631993d15 100644
  12. --- a/bfd/elf.c
  13. +++ b/bfd/elf.c
  14. @@ -734,8 +734,9 @@ setup_group (bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect)
  15. /* If all groups are invalid then fail. */
  16. if (num_group == 0)
  17. {
  18. + num_group = (unsigned) -1;
  19. elf_tdata (abfd)->group_sect_ptr = NULL;
  20. - elf_tdata (abfd)->num_group = num_group = -1;
  21. + elf_tdata (abfd)->num_group = num_group;
  22. _bfd_error_handler
  23. (_("%pB: no valid group sections found"), abfd);
  24. bfd_set_error (bfd_error_bad_value);
  25. --
  26. 2.30.0