GNOME Bugzilla – Bug 344771
Compilation error (due to -Werror) -- unused parameter 'source' in notebook.cc
Last modified: 2006-06-18 14:20:07 UTC
notebook.cc:33: warning: unused parameter 'source' make[5]: *** [notebook.lo] Error 1 make[5]: Leaving directory `/export/home/b/newrenTemp/gnome/gtkmm/gtk/gtkmm' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/export/home/b/newrenTemp/gnome/gtkmm/gtk/gtkmm' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/export/home/b/newrenTemp/gnome/gtkmm/gtk' make[2]: *** [all] Error 2 make[2]: Leaving directory `/export/home/b/newrenTemp/gnome/gtkmm/gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/home/b/newrenTemp/gnome/gtkmm' make: *** [all] Error 2
And if I fix that warning by adding the following lines // Avoid unused variable compilation warning/error (void) source; then I get the following error: notebook.cc: In function `GtkNotebook* SignalProxy_WindowCreation_gtk_callback(GtkNotebook*, GtkWidget*, gint, gint, void*)': notebook.cc:57: warning: control reaches end of non-void function make[5]: *** [notebook.lo] Error 1 make[5]: Leaving directory `/export/home/b/newrenTemp/gnome/gtkmm/gtk/gtkmm' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/export/home/b/newrenTemp/gnome/gtkmm/gtk/gtkmm' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/export/home/b/newrenTemp/gnome/gtkmm/gtk' make[2]: *** [all] Error 2 make[2]: Leaving directory `/export/home/b/newrenTemp/gnome/gtkmm/gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/home/b/newrenTemp/gnome/gtkmm' make: *** [all] Error 2
Simple workaround I used for now: cvs -q -z3 update -Pd -D 2006-06-06 gtk/src/notebook.ccg
Thanks. That should be fixed in cvs now. I wonder why you are seeing warnings (or have them turned on by autogen.sh) and I'm not. We love warnings as errors.
No clue, but it appears to be happending to Joseph as well (see bug 344990). Anyway, it does indeed look fixed so I'm marking as such.
Murray: Are you using gcc-4.x? Your autogen.sh only turns on warnings as errors for gcc-3.x.
Yes, I am using gcc 4.0.3 in Ubuntu Dapper. I'd be happy if someone made autogen.sh turn on warnings for me too.