[Spice-devel] [PATCH 5/7] Add G_GNUC_UNUSED annotations to async_read_handler args
Marc-André Lureau
marcandre.lureau at gmail.com
Tue Mar 25 04:03:16 PDT 2014
ack
On Mon, Mar 17, 2014 at 2:20 PM, Christophe Fergeau <cfergeau at redhat.com>wrote:
> 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
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>
--
Marc-André Lureau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20140325/be20a81c/attachment.html>
More information about the Spice-devel
mailing list