> /src/lib/libelf/elf_rand.c: In function `elf_rand': > /src/lib/libelf/elf_rand.c:47: warning: cast increases > required alignment of target type > *** Error code 1 This is the offending line: $ sed -ne 47p elf_rand.c arh = (struct ar_hdr *) (ar->e_rawfile + offset); However, 'struct ar_hdr' is a collection of char[] arrays, so I'm puzzled as to why GCC/arm thinks 'struct ar_hdr' has an alignment requirement. __alignof__(struct ar_hdr) appears to be '4' according GCC/arm. -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshyReceived on Sun Nov 12 2006 - 14:11:40 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:02 UTC