From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2006-03-31 14:19:19
I apologize, this was due to an earlier problem with "<warnings>all"
appearing on the command line after <cxxflags>. It's fixed in the most
----- Original Message -----
From: "Vladimir Prus" <ghost_at_[hidden]>
To: "Boost.Build developer's and user's list" <boost-build_at_[hidden]>
Sent: Friday, March 31, 2006 5:40 AM
Subject: Re: [Boost-build] <cflags> <cxxflags> confusion...
> On Tuesday 28 March 2006 11:39, Emil Dotchevski wrote:
>> With -wall, GCC warns about classes with virtual functions but with no
>> virtual destructor, even if the destructor is protected and is never
>> 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
>> 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
>> pass "-Wno-non-virtual-dtor" when compiling CPP files.
>> What am I doing wrong? This warning just sucks, how do I disable it for
> I'm afraid I can't reproduce this. I have a project with Jamroot
> exe a : a.cpp : <toolset>gcc:<cxxflags>-Wno-non-virtual-dtor ;
> and empty a.cpp and running "bjam -n" shows the -Wno-non-virtual-dtor
> Do you get the problem on such reduced testcase?
> If yes, your Boost.Build is probably out of date. If no, there's something
> more complex going on, and you'd need to provide a minimal testcase
> reproducing the problem.
> - Volodya
> Vladimir Prus
> Boost.Build V2: http://boost.org/boost-build2
> Unsubscribe & other changes:
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