|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH V6 16/29] qapi event: convert RTC_CHANGE |
Date: | Sun, 15 Jun 2014 16:00:42 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
Il 13/06/2014 23:27, Eric Blake ha scritto:
>> visit_start_struct(v, NULL, "", "RTC_CHANGE", 0, &local_err); >> if (local_err) { >> goto clean; >> }Hmm, qmp_output_start_struct() never sets errp.>> >> visit_type_int(v, &offset, "offset", &local_err); >> if (local_err) { >> goto clean; >> }Likewise, qmp_output_type_int never sets errp.
I think it is better to produce correct error propagation even if it is unused. We could add range-checking of enums, for example.
I guess all the NULLs for errp could become &error_abort, but it can be done after the merge.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |