]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: Umark virBufferCheckErrorInternal as ATTRIBUTE_RETURN_CHECK
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 16 Aug 2017 09:09:47 +0000 (11:09 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 29 Aug 2017 09:17:16 +0000 (11:17 +0200)
The function is useful even without using the return value.  And if
needed, the return value can be obtained by other calls as well.  The
potential for clean-up can be seen in the following patch.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/util/virbuffer.h

index 6ad9c3ec54627243a95e496d78908b56ad7244ce..3211c07b08b9480814bd45bd7d484e763b8d9388 100644 (file)
@@ -58,7 +58,7 @@ int virBufferCheckErrorInternal(const virBuffer *buf,
                                 const char *filename,
                                 const char *funcname,
                                 size_t linenr)
-    ATTRIBUTE_RETURN_CHECK ATTRIBUTE_NONNULL(1);
+    ATTRIBUTE_NONNULL(1);
 /**
  * virBufferCheckError
  *