summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-03-17 14:08:53 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2014-04-16 17:11:38 +0200
commit390a36ea34bbff271169994a5eea6faec41c9d26 (patch)
tree40092f37a1511afaa6e5a1474bb5d26d19275ef4
parente36c7efe81373cdc2741f2e24ab4bc5be2010047 (diff)
downloadspice-390a36ea34bbff271169994a5eea6faec41c9d26.tar.gz
spice-390a36ea34bbff271169994a5eea6faec41c9d26.tar.xz
spice-390a36ea34bbff271169994a5eea6faec41c9d26.zip
Add G_GNUC_UNUSED annotations to async_read_handler args
2 of the arguments are not used, the G_GNUC_UNUSED annotation will make this explicit.
-rw-r--r--server/reds_stream.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/reds_stream.c b/server/reds_stream.c
index 2c6be618..f5989509 100644
--- a/server/reds_stream.c
+++ b/server/reds_stream.c
@@ -413,7 +413,9 @@ static inline void async_read_clear_handlers(AsyncRead *async)
async->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 *async = (AsyncRead *)data;