[virt-tools-list] [PATCH virt-viewer 6/6] Silence unused arguments warnings

Christophe Fergeau cfergeau at redhat.com
Fri May 17 12:59:20 UTC 2013


ACK

On Thu, May 16, 2013 at 09:33:22PM +0200, Marc-André Lureau wrote:
> From: Marc-André Lureau <marcandre.lureau at redhat.com>
> 
> In file included from virt-viewer-session-spice.c:41:
> gbinding.c: In function 'on_source_notify':
> gbinding.c:381: warning: unused parameter 'gobject'
> gbinding.c: In function 'on_target_notify':
> gbinding.c:422: warning: unused parameter 'gobject'
> gbinding.c: In function 'g_binding_init':
> gbinding.c:709: warning: unused parameter 'binding'
> ---
>  src/gbinding.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/gbinding.c b/src/gbinding.c
> index 5b5757c..4b2f5b1 100644
> --- a/src/gbinding.c
> +++ b/src/gbinding.c
> @@ -378,7 +378,7 @@ default_transform_from (GBinding     *binding,
>  }
>  
>  static void
> -on_source_notify (GObject    *gobject,
> +on_source_notify (GObject    *gobject G_GNUC_UNUSED,
>                    GParamSpec *pspec,
>                    GBinding   *binding)
>  {
> @@ -419,7 +419,7 @@ on_source_notify (GObject    *gobject,
>  }
>  
>  static void
> -on_target_notify (GObject    *gobject,
> +on_target_notify (GObject    *gobject G_GNUC_UNUSED,
>                    GParamSpec *pspec,
>                    GBinding   *binding)
>  {
> @@ -706,7 +706,7 @@ g_binding_class_init (GBindingClass *klass)
>  }
>  
>  static void
> -g_binding_init (GBinding *binding)
> +g_binding_init (GBinding *binding G_GNUC_UNUSED)
>  {
>  }
>  
> -- 
> 1.8.3.rc1.49.g8d97506
> 
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20130517/820ec078/attachment.sig>


More information about the virt-tools-list mailing list