Message ID | 20170613165313.20954-3-ehabkost@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/include/qapi/error.h b/include/qapi/error.h index 7e532d00e9..38f7afba2e 100644 --- a/include/qapi/error.h +++ b/include/qapi/error.h @@ -66,7 +66,7 @@ * } * * Call a function ignoring errors: - * foo(arg, NULL); + * foo(arg, IGNORE_ERRORS); * * Call a function aborting on errors: * foo(arg, &error_abort); @@ -117,6 +117,8 @@ #include "qapi-types.h" +#define IGNORE_ERRORS (NULL) + /* * Overall category of an error. * Based on the qapi type QapiErrorClass, but reproduced here for nicer
Define new IGNORE_ERRORS macro that should be used when errors will be ignored. NULL will still work by now, but will break once we implement IGNORE_ERRORS in a different way later. Other patches will convert existing code to use IGNORE_ERRORS. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> --- include/qapi/error.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)