Re: [PATCH 10/16] qapi/error: add g_autoptr(Error) support

2022-05-04 Thread Paolo Bonzini
This was rejected before on the grounds that propagating or printing the error is usually the right thing to do, and neither needs an autoptr: https://patchew.org/QEMU/20210912124834.503032-1-pbonz...@redhat.com/ So while I do agree with the patch, for it to be accepted some Error* functions wo

[PATCH 10/16] qapi/error: add g_autoptr(Error) support

2022-05-04 Thread marcandre . lureau
From: Marc-André Lureau Sometime, ERRP_GUARD() isn't what you are looking for, because the function doesn't throw errors, yet auto-cleaning is nice to have. Signed-off-by: Marc-André Lureau --- include/qapi/error.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/qapi/error.h b/in