[PATCH] add a gcc-printf attribute to remoteDispatchError

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

 



Spotted this a week ago:

  add a gcc-printf attribute to remoteDispatchError

diff --git a/qemud/remote.c b/qemud/remote.c
index f4d76a1..047cae7 100644
--- a/qemud/remote.c
+++ b/qemud/remote.c
@@ -54,7 +54,8 @@
 
 static void remoteDispatchError (struct qemud_client *client,
                                  remote_message_header *req,
-                                 const char *fmt, ...);
+                                 const char *fmt, ...)
+    ATTRIBUTE_FORMAT(printf, 3, 4);
 static virDomainPtr get_nonnull_domain (virConnectPtr conn, remote_nonnull_domain domain);
 static virNetworkPtr get_nonnull_network (virConnectPtr conn, remote_nonnull_network network);
 static void make_nonnull_domain (remote_nonnull_domain *dom_dst, virDomainPtr dom_src);
-- 
1.5.3.6.950.g92b7b

--
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]