[libvirt PATCH 3/3] vircommand: fix ATTRIBUTE_NONNULL for virCommandAddArg*

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

 



Commit <912c6b22fc622cd7c7d29c7f8eaeb816b266daac> added checks to
`virCommandAddArg` and `virCommandAddArgPair` functions for some
attributes which were marked as NONNULL.  Remove the ATTRIBUTE_NONNULL
as well.

Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 src/util/vircommand.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/util/vircommand.h b/src/util/vircommand.h
index 9086f9a90c..80f71e22f6 100644
--- a/src/util/vircommand.h
+++ b/src/util/vircommand.h
@@ -117,7 +117,7 @@ void virCommandAddEnvPassCommon(virCommandPtr cmd);
 void virCommandAddEnvXDG(virCommandPtr cmd, const char *baseDir);
 
 void virCommandAddArg(virCommandPtr cmd,
-                      const char *val) ATTRIBUTE_NONNULL(2);
+                      const char *val);
 
 void virCommandAddArgBuffer(virCommandPtr cmd,
                             virBufferPtr buf);
@@ -128,8 +128,7 @@ void virCommandAddArgFormat(virCommandPtr cmd,
 
 void virCommandAddArgPair(virCommandPtr cmd,
                           const char *name,
-                          const char *val)
-    ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3);
+                          const char *val);
 
 void virCommandAddArgSet(virCommandPtr cmd,
                          const char *const*vals) ATTRIBUTE_NONNULL(2);
-- 
2.24.1





[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