bfd: Remove use of void pointer arithmetic
authorMichael Forney <mforney@mforney.org>
Wed, 6 Oct 2021 17:33:13 +0000 (10:33 -0700)
committerAlan Modra <amodra@gmail.com>
Mon, 11 Oct 2021 08:43:41 +0000 (19:13 +1030)
This is not valid in ISO C. Instead, use a pointer to bfd_byte.

* peicode.h (pe_bfd_object_p): Remove use of void pointer
arithmetic.

bfd/peicode.h

index c84b135e1eb31d8154992734dda935176525eff3..41955975cdc621df3f53165a934a0d999140f09e 100644 (file)
@@ -1474,7 +1474,7 @@ pe_bfd_object_p (bfd * abfd)
   if (opt_hdr_size != 0)
     {
       bfd_size_type amt = opt_hdr_size;
-      void * opthdr;
+      bfd_byte * opthdr;
 
       /* PR 17521 file: 230-131433-0.004.  */
       if (amt < sizeof (PEAOUTHDR))