glib-genmarshal



Hi.

I'm writing an application that uses GTK+ as GUI.  I've come to a
problem though.  My program is compiled with many GCC's `-W...'
options turned on (i.e. i want to get warnings about suspicious
code places).  However, in marshallers i generate with
`glib-genmarshal' I get warnings about `invocation_hint' parameter
which is never used.  This is very annoying and i had to add some
nasty hack into that directories' `Makefile.am'.

Will you maybe accept this simple (untested) patch so that at least
future versions of `glib-genmarshal' produce cleaner code?

Paul


diff -up /home/paul/glib-2.0.6/gobject/glib-genmarshal.c /tmp/buffer-content-816fmT
--- /home/paul/glib-2.0.6/gobject/glib-genmarshal.c	2002-05-07 22:01:15.000000000 +0300
+++ /tmp/buffer-content-816fmT	2004-01-29 23:41:10.000000000 +0200
@@ -397,6 +397,9 @@ generate_marshal (const gchar *signame,
       if (sig->rarg->setter)
 	fprintf (fout, "  %s v_return;\n", sig->rarg->ctype);
 
+      fprintf (fout, "\n");
+      fprintf (fout, "  (void) invocation_hint;\n");
+
       if (sig->args || sig->rarg->setter)
 	{
 	  fprintf (fout, "\n");



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