Reviewed by Tim Janik.
authorSven Herzberg <herzi@gnome-de.org>
Sat, 13 Oct 2007 10:51:04 +0000 (10:51 +0000)
committerSven Herzberg <herzi@src.gnome.org>
Sat, 13 Oct 2007 10:51:04 +0000 (10:51 +0000)
2007-10-13  Sven Herzberg  <herzi@gnome-de.org>

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
gobject/glib-genmarshal.c

index 63cab61e9eb902d918fe97ecac40e7b87b21c577..0aa8eb0a90604ddfa5cb77803e5281c2d7158960 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2007-10-13  Sven Herzberg  <herzi@gnome-de.org>
+
+       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  <tml@novell.com>
 
        * glibconfig.h.win32.in: Always define G_CAN_INLINE. Even MSVC6 is
index a36842d4c7abb25c1ee3cc9b630330f7d7039ceb..e05579d7998a62b0845ea6e7209ded40dd713694 100644 (file)
@@ -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");