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

[Libvir] [PATCH] add a gcc-printf attribute to remoteDispatchError



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


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