[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PULL 00/41] QAPI patches for 2017-06-09
From: |
Marc-André Lureau |
Subject: |
Re: [Qemu-devel] [PULL 00/41] QAPI patches for 2017-06-09 |
Date: |
Mon, 12 Jun 2017 06:52:21 -0400 (EDT) |
Hi
----- Original Message -----
> On 9 June 2017 at 14:46, Markus Armbruster <address@hidden> wrote:
> > The following changes since commit
> > 64175afc695c0672876fbbfc31b299c86d562cb4:
> >
> > arm_gicv3: Fix ICC_BPR1 reset value when EL3 not implemented (2017-06-07
> > 17:21:44 +0100)
> >
> > are available in the git repository at:
> >
> > git://repo.or.cz/qemu/armbru.git tags/pull-qapi-2017-06-09
> >
> > for you to fetch changes up to 9f70c3652654d59a1cc0e2ef4cc5b0e541d93579:
> >
> > tests/qdict: check more get_try_int() cases (2017-06-09 13:48:45 +0200)
> >
> > ----------------------------------------------------------------
> > QAPI patches for 2017-06-09
> >
>
> Some compilers don't like the assert(0) idiom used in qnum.c to
> say "code flow doesn't reach end of function":
>
> /home/petmay01/linaro/qemu-for-merges/qobject/qnum.c: In function
> ‘qnum_get_double’:
> /home/petmay01/linaro/qemu-for-merges/qobject/qnum.c:162:1: error:
> control reaches end of non-void function [-Werror=return-type]
> }
> ^
> /home/petmay01/linaro/qemu-for-merges/qobject/qnum.c: In function
> ‘qnum_to_string’:
> /home/petmay01/linaro/qemu-for-merges/qobject/qnum.c:200:1: error:
> control reaches end of non-void function [-Werror=return-type]
> }
> ^
>
> (probably older gcc; that was the w32 gcc compiler; one of
> patchew's build environments fails the same way).
>
> I think one common working idiom for this is:
> int foo(void) {
> switch (whatever) {
> case X:
> return 0;
> case Y:
> return 1;
> default:
> g_assert_not_reached();
> }
> }
>
> Can you fix and resend the pullreq, please?
Markus made me switch from g_assert_not_reached() to assert(0) in v3.
He is on PTO this week, if you don't mind (as you wanted this series applied
quickly), you could fix it by adding dummy return?
- [Qemu-devel] [PULL 34/41] arm: use get_uint() for "mp-affinity" property, (continued)
- [Qemu-devel] [PULL 34/41] arm: use get_uint() for "mp-affinity" property, Markus Armbruster, 2017/06/09
- [Qemu-devel] [PULL 28/41] acpi: use get_uint() for various acpi properties, Markus Armbruster, 2017/06/09
- [Qemu-devel] [PULL 22/41] pc-dimm: make "size" property uint64, Markus Armbruster, 2017/06/09
- [Qemu-devel] [PULL 21/41] pc-dimm: use get_uint() for dimm properties, Markus Armbruster, 2017/06/09
- [Qemu-devel] [PULL 39/41] i386/cpu: use get_uint() for "min-level"/"min-xlevel" properties, Markus Armbruster, 2017/06/09
- [Qemu-devel] [PULL 19/41] qdev: Use appropriate getter/setters type, Markus Armbruster, 2017/06/09
- [Qemu-devel] [PULL 06/41] qapi: merge QInt and QFloat in QNum, Markus Armbruster, 2017/06/09
- Re: [Qemu-devel] [PULL 00/41] QAPI patches for 2017-06-09, no-reply, 2017/06/09
- Re: [Qemu-devel] [PULL 00/41] QAPI patches for 2017-06-09, no-reply, 2017/06/09
- Re: [Qemu-devel] [PULL 00/41] QAPI patches for 2017-06-09, Peter Maydell, 2017/06/12