]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
events: Remove ATTRIBUTE_NONNULL for virObjectEventStateQueue[Remote]
authorJohn Ferlan <jferlan@redhat.com>
Fri, 15 Jun 2018 19:25:59 +0000 (15:25 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 18 Jun 2018 21:03:51 +0000 (17:03 -0400)
Commit aad3a0b5f altered virObjectEventStateQueueRemote to move
the "if (!event) return" call added in the previous commit 031eb8f6
to virObjectEventStateQueue. Neither commit altered the function
prototype which used ATTRIBUTE_NONNULL(2).

This caused Coverity build problems. Since @event is now checked,
just remove the ATTRIBUTE_NONNULL check from both prototypes.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/conf/object_event.h

index 133f7ed914ec0b93439314362c46b1c0f700eb5e..70e9579e81f3e034fd9f00e67276dd90997f2571 100644 (file)
@@ -62,13 +62,13 @@ typedef void (*virConnectObjectEventGenericCallback)(virConnectPtr conn,
 void
 virObjectEventStateQueue(virObjectEventStatePtr state,
                          virObjectEventPtr event)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
+    ATTRIBUTE_NONNULL(1);
 
 void
 virObjectEventStateQueueRemote(virObjectEventStatePtr state,
                                virObjectEventPtr event,
                                int remoteID)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2);
+    ATTRIBUTE_NONNULL(1);
 
 int
 virObjectEventStateDeregisterID(virConnectPtr conn,