From: Iain Sandoe Date: Mon, 23 Aug 2021 16:34:43 +0000 (+0100) Subject: libiberty, Darwin: Fix a build warning. X-Git-Tag: upstream/12.2.0~5605 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=38757aa88735ab2e511bc428e2407a5a5e9fa0be;p=platform%2Fupstream%2Fgcc.git libiberty, Darwin: Fix a build warning. r12-3005-g220c410162ebece4f missed a cast for the set_32 call. Fixed thus. Signed-off-by: Iain Sandoe libiberty/ChangeLog: * simple-object-mach-o.c (simple_object_mach_o_write_segment): Cast the first argument to set_32 as needed. --- diff --git a/libiberty/simple-object-mach-o.c b/libiberty/simple-object-mach-o.c index 72b69d1..a8869e7 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;