1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-25 01:34:11 +03:00

events: Remove ATTRIBUTE_NONNULL for virObjectEventStateQueue[Remote]

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>
This commit is contained in:
John Ferlan 2018-06-15 15:25:59 -04:00
parent edcd3ed4a4
commit 12f2545761

View File

@ -62,13 +62,13 @@ typedef void (*virConnectObjectEventGenericCallback)(virConnectPtr conn,
void void
virObjectEventStateQueue(virObjectEventStatePtr state, virObjectEventStateQueue(virObjectEventStatePtr state,
virObjectEventPtr event) virObjectEventPtr event)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2); ATTRIBUTE_NONNULL(1);
void void
virObjectEventStateQueueRemote(virObjectEventStatePtr state, virObjectEventStateQueueRemote(virObjectEventStatePtr state,
virObjectEventPtr event, virObjectEventPtr event,
int remoteID) int remoteID)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2); ATTRIBUTE_NONNULL(1);
int int
virObjectEventStateDeregisterID(virConnectPtr conn, virObjectEventStateDeregisterID(virConnectPtr conn,