public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3092] libiberty, Darwin: Fix a build warning.
@ 2021-08-23 16:38 Iain D Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2021-08-23 16:38 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:38757aa88735ab2e511bc428e2407a5a5e9fa0be

commit r12-3092-g38757aa88735ab2e511bc428e2407a5a5e9fa0be
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Mon Aug 23 17:34:43 2021 +0100

    libiberty, Darwin: Fix a build warning.
    
    r12-3005-g220c410162ebece4f missed a cast for the set_32 call.
    Fixed thus.
    
    Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
    
    libiberty/ChangeLog:
    
            * simple-object-mach-o.c (simple_object_mach_o_write_segment):
            Cast the first argument to set_32 as needed.

Diff:
---
 libiberty/simple-object-mach-o.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libiberty/simple-object-mach-o.c b/libiberty/simple-object-mach-o.c
index 72b69d19c21..a8869e7c639 100644
--- a/libiberty/simple-object-mach-o.c
+++ b/libiberty/simple-object-mach-o.c
@@ -1228,7 +1228,7 @@ simple_object_mach_o_write_segment (simple_object_write *sobj, int descriptor,
       /* Swap the indices, if required.  */
 
       for (i = 0; i < (nsects_in * 4); ++i)
-	set_32 (&index[i], index[i]);
+	set_32 ((unsigned char *) &index[i], index[i]);
 
       sechdr_offset += sechdrsize;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-23 16:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-23 16:38 [gcc r12-3092] libiberty, Darwin: Fix a build warning Iain D Sandoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).