[Spice-devel] [PATCH 5/7] Add G_GNUC_UNUSED annotations to async_read_handler args
Christophe Fergeau
cfergeau at redhat.com
Mon Mar 17 06:20:39 PDT 2014
2 of the arguments are not used, the G_GNUC_UNUSED annotation will make
this explicit.
---
server/reds_stream.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/server/reds_stream.c b/server/reds_stream.c
index 9041033..8476066 100644
--- a/server/reds_stream.c
+++ b/server/reds_stream.c
@@ -409,7 +409,9 @@ static inline void async_read_clear_handlers(AsyncRead *obj)
obj->stream = NULL;
}
-static void async_read_handler(int fd, int event, void *data)
+static void async_read_handler(G_GNUC_UNUSED int fd,
+ G_GNUC_UNUSED int event,
+ void *data)
{
AsyncRead *obj = (AsyncRead *)data;
--
1.8.5.3
More information about the Spice-devel
mailing list