|
Boost-Build : |
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2006-03-28 02:39:22
With -wall, GCC warns about classes with virtual functions but with no
virtual destructor, even if the destructor is protected and is never called
virtually. So I use "<toolset>gcc:<cflags>-Wno-non-virtual-dtor" in my
jamroot to disable this warning globally, and it works, but then I get this
on C files:
cc1: warning: command line option "-Wno-non-virtual-dtor" is valid for
C++/ObjC++ but not for C
I tried to use <cxxflags> instead of <cflags>, but then boost-build doesn't
pass "-Wno-non-virtual-dtor" when compiling CPP files.
What am I doing wrong? This warning just sucks, how do I disable it for
good?
Thanks,
Emil
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk