[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 31/34] tools: Disable ignored-attributes warning when compiling with clang
On 03/27/2014 05:14 PM, Ian Campbell wrote: > On Tue, 2014-03-25 at 16:55 +0000, Julien Grall wrote: >> Clang 3.5 will fail to build most of the tools because aligned attribute >> is not used sometimes: >> >> In file included from xc_core.c:64: >> In file included from ./xg_private.h:30: >> In file included from ./xenctrl.h:55: >> ../../tools/include/xen/foreign/x86_64.h:198:47: error: 'aligned' attribute >> ignored when parsing type [-Werror,-Wignored-attributes] >> __align8__ uint64_t evtchn_pending[sizeof(__align8__ uint64_t) * 8]; >> ^~~~~~~~~~ >> ../../tools/include/xen/foreign/x86_64.h:13:36: note: expanded from macro >> '__align8__' >> # define __align8__ __attribute__((aligned (8))) >> ^~~~~~~~~~~ >> ../../tools/include/xen/foreign/x86_64.h:199:44: error: 'aligned' attribute >> ignored when parsing type [-Werror,-Wignored-attributes] >> __align8__ uint64_t evtchn_mask[sizeof(__align8__ uint64_t) * 8]; > > Is sizeof(__align8__ uint64_t) != sizeof(uint64_t) under any > circumstances? IOW can't we just drop the __align8__ here? I don't think. This code is generated by mkheader.py. I will look at it and see if I can modify it. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |