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

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



From: Marc-André Lureau <marcandre lureau 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


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