[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] util: Remove ATTRIBUTE_NONNULL from virClassNew()



When compiling with Coverity, the STATIC_ANALYSIS was set to true which
triggered the ATTRIBUTE_NONNULL check from src/internal.h.  Since virClassNew
now expects to be called with NULL under a special condition, this check
is no longer valid.
---
 src/util/virobject.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/util/virobject.h b/src/util/virobject.h
index bb72a25..f58a950 100644
--- a/src/util/virobject.h
+++ b/src/util/virobject.h
@@ -54,8 +54,7 @@ virClassPtr virClassForObjectLockable(void);
 virClassPtr virClassNew(virClassPtr parent,
                         const char *name,
                         size_t objectSize,
-                        virObjectDisposeCallback dispose)
-    ATTRIBUTE_NONNULL(1);
+                        virObjectDisposeCallback dispose);
 
 const char *virClassName(virClassPtr klass)
     ATTRIBUTE_NONNULL(1);
-- 
1.7.11.7


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]