Re: Compilation with gtkmm gives a lot of warnings

2015-01-20 Thread Kjell Ahlstedt
I compiled a small gtkmm application with -Weffc++, and I got warnings from code in the following packages: gtkmm, glibmm, cairomm, libsigc++, glib. The best you can do is to either give up the use of -Weffc++, or make a filter that removes all warnings from the compiler listing except those

Compilation with gtkmm gives a lot of warnings

2015-01-18 Thread Frédéric Fort
Hello, I am trying to learn how to use gtkmm for some days now. Unfortunately, my compiler sends a lot of errors because of gtkmm, when I add warning flags. When compiling a minimalistic program (a Gtk::Main and an empty Gtk::Window) with the flag -Weffc++ alone, I get 221 warnings. Looking for

Re: Compilation with gtkmm gives a lot of warnings

2015-01-18 Thread Jonas Platte
There's a simple fix for that: Don't use -Weffc++. The C++ standard library g++ uses (I think it's called libstdc++) doesn't even pass without, or with only a few warnings when having that flag enabled. For example, it warns you about class members that are not explicitly initialized in each