On Wednesday 08 February 2006 03:54 am, Per-Anton Rønning wrote: > Mike Adolf wrote: > > I have started using Qt (on Mandriva 2006) and it seems that g++ is now > > issuing more warning messages. In particular, Qt generates classes > > containing virtual methods without making a virtual destructor. This > > causes a long list of warning messages. Does anyone know what > > environment compiler flag I can set to turn off a given warning. > > > > Mike > > ____________________________________________________ > > Want to buy your Pack or Services from Mandriva? > > Go to http://store.mandriva.com > > Join the Club : http://www.mandrivaclub.com > > ____________________________________________________ > > Does not -w work??
I have not tried it, but it turns off all warnings. QMAKE_CXXFLAGS_WARN_ON += -Wno-non-virtual-dtor in each .pro file just turns off the virtual constructor warning. Mike ____________________________________________________ Want to buy your Pack or Services from Mandriva? Go to http://store.mandriva.com Join the Club : http://www.mandrivaclub.com ____________________________________________________
