After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 344771 - Compilation error (due to -Werror) -- unused parameter 'source' in notebook.cc
Compilation error (due to -Werror) -- unused parameter 'source' in notebook.cc
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: build
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2006-06-13 15:28 UTC by Elijah Newren
Modified: 2006-06-18 14:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Elijah Newren 2006-06-13 15:28:45 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
Comment 1 Elijah Newren 2006-06-13 15:32:19 UTC
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
Comment 2 Elijah Newren 2006-06-13 17:29:03 UTC
Simple workaround I used for now:
  cvs -q -z3 update -Pd -D 2006-06-06 gtk/src/notebook.ccg
Comment 3 Murray Cumming 2006-06-16 21:40:53 UTC
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.
Comment 4 Elijah Newren 2006-06-17 15:19:45 UTC
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.
Comment 5 Elijah Newren 2006-06-17 19:36:38 UTC
Murray: Are you using gcc-4.x?  Your autogen.sh only turns on warnings as errors for gcc-3.x.
Comment 6 Murray Cumming 2006-06-18 14:20:07 UTC
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.