From: Cole Robinson Date: Wed, 3 Aug 2016 22:45:50 +0000 (-0400) Subject: conf: events: Fix coverity warning X-Git-Tag: v2.2.0-rc1~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e584615b81b5cabb252b1866171bde25b4f06d05;p=thirdparty%2Flibvirt.git conf: events: Fix coverity warning Since 2bfa75134 virObjectEventNew can be passed a NULL 'uuid' value, so drop the ATTRIBUTE_NONNULL annotation --- diff --git a/src/conf/object_event_private.h b/src/conf/object_event_private.h index 92c25d414c..27b461f177 100644 --- a/src/conf/object_event_private.h +++ b/src/conf/object_event_private.h @@ -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