From: Ian Campbell <Ian.Campbell@citrix.com>
To: Eric Blake <eblake@redhat.com>
Cc: libvir-list@redhat.com, Ian Jackson <Ian.Jackson@eu.citrix.com>,
cemeyer@uw.edu, xen-devel <xen-devel@lists.xen.org>
Subject: Re: [libvirt] [PATCH 1/2] virdbus: don't force users to pass int for bool values
Date: Tue, 25 Nov 2014 09:51:32 +0000 [thread overview]
Message-ID: <1416909092.32327.3.camel@citrix.com> (raw)
In-Reply-To: <54735AF7.2060103@redhat.com>
On Mon, 2014-11-24 at 09:21 -0700, Eric Blake wrote:
> On 11/24/2014 02:43 AM, Ian Campbell wrote:
>
> >>>>
> >>>> I think this change breaks build on FreeBSD:
> >>>>
> >>>> CC util/libvirt_util_la-virdbus.lo
> >>>> util/virdbus.c:956:13: error: cast from 'bool *' to 'dbus_bool_t *' (aka 'unsigned int *') increases required alignment from 1 to 4 [-Werror,-Wcast-align]
> >>>> GET_NEXT_VAL(dbus_bool_t, bool_val, bool, "%d");
> >>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>>> util/virdbus.c:858:17: note: expanded from macro 'GET_NEXT_VAL'
> >>>> x = (dbustype *)(*xptrptr + (*narrayptr - 1)); \
> >>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated.
> >>>
> >>> Valid complaint, so I'll have to figure something out to avoid it. :(
>
> > I'm, guessing that this is the same underlying issue as:
> > util/virdbus.c: In function 'virDBusMessageIterDecode':
> > util/virdbus.c:956:346: error: cast increases required alignment of target type [-Werror=cast-align]
>
> Yes.
>
> >
> > which we are seeing in the Xen automated tests [0, 1] (on armhf only,
> > probably compiler dependent?).
>
> So, do I have an ACK on my proposed fix yet? :)
> https://www.redhat.com/archives/libvir-list/2014-November/msg00838.html
Well, FWIW it looks good to me:
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Ian.
prev parent reply other threads:[~2014-11-25 9:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20141120101240.2a75f384@m>
[not found] ` <546E7674.1060204@redhat.com>
[not found] ` <546FD5D2.60400@redhat.com>
2014-11-24 9:43 ` [libvirt] [PATCH 1/2] virdbus: don't force users to pass int for bool values Ian Campbell
[not found] ` <1416822231.26329.19.camel@citrix.com>
2014-11-24 16:21 ` Eric Blake
[not found] ` <54735AF7.2060103@redhat.com>
2014-11-25 9:51 ` Ian Campbell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1416909092.32327.3.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=cemeyer@uw.edu \
--cc=eblake@redhat.com \
--cc=libvir-list@redhat.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.