]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: events: Fix coverity warning
authorCole Robinson <crobinso@redhat.com>
Wed, 3 Aug 2016 22:45:50 +0000 (18:45 -0400)
committerCole Robinson <crobinso@redhat.com>
Wed, 3 Aug 2016 22:45:50 +0000 (18:45 -0400)
Since 2bfa75134 virObjectEventNew can be passed a NULL 'uuid' value,
so drop the ATTRIBUTE_NONNULL annotation

src/conf/object_event_private.h

index 92c25d414cba16f4a24d9b9e98135e4de2309bdc..27b461f17785d5e6dbb62fbf1e13d48281603d8e 100644 (file)
@@ -106,6 +106,6 @@ virObjectEventNew(virClassPtr klass,
                   const unsigned char *uuid,
                   const char *key)
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(5)
-    ATTRIBUTE_NONNULL(6) ATTRIBUTE_NONNULL(7);
+    ATTRIBUTE_NONNULL(7);
 
 #endif