[PATCH 17/22] util: Remove NONNULL(1, 3, 4) from virTypedParamsFilter

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

 



The API checks each parameter for NULL anyway and would error, so need
to add NONNULL on prototype.

Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
---
 src/util/virtypedparam.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/util/virtypedparam.h b/src/util/virtypedparam.h
index 7ab143f..59d5fbc 100644
--- a/src/util/virtypedparam.h
+++ b/src/util/virtypedparam.h
@@ -79,8 +79,7 @@ virTypedParamsFilter(virTypedParameterPtr params,
                      int nparams,
                      const char *name,
                      virTypedParameterPtr **ret)
-    ATTRIBUTE_RETURN_CHECK  ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(3)
-    ATTRIBUTE_NONNULL(4);
+    ATTRIBUTE_RETURN_CHECK;
 
 
 int virTypedParameterAssign(virTypedParameterPtr param, const char *name,
-- 
2.9.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux