From 63c721b6d0787f8f2f43cb80e689bf77c2915aff Mon Sep 17 00:00:00 2001 From: Sven Herzberg Date: Sat, 13 Oct 2007 10:51:04 +0000 Subject: [PATCH] Reviewed by Tim Janik. 2007-10-13 Sven Herzberg Reviewed by Tim Janik. Created marshallers that don't throw gcc warnings when compiling with -WUnused (fixes #359165). * gobject/glib-genmarshal.c: decorate return_value and invocation_hint with G_GNUC_UNUSED svn path=/trunk/; revision=5781 --- ChangeLog | 10 ++++++++++ gobject/glib-genmarshal.c | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 63cab61e9..0aa8eb0a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2007-10-13 Sven Herzberg + + Reviewed by Tim Janik. + + Created marshallers that don't throw gcc warnings when compiling with + -WUnused (fixes #359165). + + * gobject/glib-genmarshal.c: decorate return_value and invocation_hint + with G_GNUC_UNUSED + 2007-10-04 Tor Lillqvist * glibconfig.h.win32.in: Always define G_CAN_INLINE. Even MSVC6 is diff --git a/gobject/glib-genmarshal.c b/gobject/glib-genmarshal.c index a36842d4c..e05579d79 100644 --- a/gobject/glib-genmarshal.c +++ b/gobject/glib-genmarshal.c @@ -373,10 +373,10 @@ generate_marshal (const gchar *signame, g_fprintf (fout, "void\n"); ind = g_fprintf (fout, "%s_%s (", marshaller_prefix, signame); g_fprintf (fout, "GClosure *closure,\n"); - g_fprintf (fout, "%sGValue *return_value,\n", indent (ind)); + g_fprintf (fout, "%sGValue *return_value G_GNUC_UNUSED,\n", indent (ind)); g_fprintf (fout, "%sguint n_param_values,\n", indent (ind)); g_fprintf (fout, "%sconst GValue *param_values,\n", indent (ind)); - g_fprintf (fout, "%sgpointer invocation_hint,\n", indent (ind)); + g_fprintf (fout, "%sgpointer invocation_hint G_GNUC_UNUSED,\n", indent (ind)); g_fprintf (fout, "%sgpointer marshal_data)\n", indent (ind)); g_fprintf (fout, "{\n");