Philippe Mathieu-Daudé writes:
> On 9/13/21 3:08 PM, Markus Armbruster wrote:
>> Markus Armbruster writes:
[...]
>> As is, reporting errors doesn't play well with g_autoptr(). Example:
>>
>> Error *err = NULL;
>>
>> ... code that may set @err ...
>>
>> if (error is serious) {
>
On 9/13/21 3:08 PM, Markus Armbruster wrote:
> Markus Armbruster writes:
>
>> Paolo Bonzini writes:
>>
>>> On 13/09/21 07:23, Markus Armbruster wrote:
Paolo Bonzini writes:
> Allow replacing calls to error_free() with g_autoptr(Error)
> declarations.
>
> Signed-off-by:
Markus Armbruster writes:
> Paolo Bonzini writes:
>
>> On 13/09/21 07:23, Markus Armbruster wrote:
>>> Paolo Bonzini writes:
>>>
Allow replacing calls to error_free() with g_autoptr(Error)
declarations.
Signed-off-by: Paolo Bonzini
---
include/qapi/error.h | 2
Paolo Bonzini writes:
> On 13/09/21 07:23, Markus Armbruster wrote:
>> Paolo Bonzini writes:
>>
>>> Allow replacing calls to error_free() with g_autoptr(Error)
>>> declarations.
>>>
>>> Signed-off-by: Paolo Bonzini
>>> ---
>>> include/qapi/error.h | 2 ++
>>> 1 file changed, 2 insertions(+)
On Mon, Sep 13, 2021 at 09:30:07AM +0200, Paolo Bonzini wrote:
> On 13/09/21 07:23, Markus Armbruster wrote:
> > Paolo Bonzini writes:
> >
> > > Allow replacing calls to error_free() with g_autoptr(Error)
> > > declarations.
> > >
> > > Signed-off-by: Paolo Bonzini
> > > ---
> > > include/qap
On 13/09/21 07:23, Markus Armbruster wrote:
Paolo Bonzini writes:
Allow replacing calls to error_free() with g_autoptr(Error)
declarations.
Signed-off-by: Paolo Bonzini
---
include/qapi/error.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/qapi/error.h b/include/qapi/error
Paolo Bonzini writes:
> Allow replacing calls to error_free() with g_autoptr(Error)
> declarations.
>
> Signed-off-by: Paolo Bonzini
> ---
> include/qapi/error.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/include/qapi/error.h b/include/qapi/error.h
> index 4a9260b0cc..8564657baf
On 9/12/21 5:48 AM, Paolo Bonzini wrote:
Allow replacing calls to error_free() with g_autoptr(Error)
declarations.
Signed-off-by: Paolo Bonzini
---
include/qapi/error.h | 2 ++
1 file changed, 2 insertions(+)
Reviewed-by: Richard Henderson
r~
Allow replacing calls to error_free() with g_autoptr(Error)
declarations.
Signed-off-by: Paolo Bonzini
---
include/qapi/error.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/qapi/error.h b/include/qapi/error.h
index 4a9260b0cc..8564657baf 100644
--- a/include/qapi/error.h
+++ b/i