Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-09-19 06:08:54


On Monday 19 September 2005 14:51, Reece Dunn wrote:

> > > I have provided an updated diff based on feedback.
> > >
> > > +feature warnings :
> > > + on # turn warnings on
> >
> > Heh, what does that mean? Which warnings are turned on? I'd prefer this
> > to be spelled down.
>
> How about: "Enable a tool-defined set of warnings that enables
> 'compile-time' warnings according to that tool." :)

That's "tool" repeated twice and "warning" repeated twice. Just "Enables
default warning level for the tool"

> This will, in most
> cases be a "warnings=on" flag.
>
> > > + off # turn warnings off
> >
> > All warnings? Again, I'd rather have this spelled down.
>
> Yes: "Turn off all warnings issued by the tool."

Ok.

> > > + all # enable all warnings
> > >
> > > +flags gcc.compile CFLAGS <warnings>on : ;
> >
> >This can be removed, as it has no effect.
>
> Noted. Although I have seen other declerations like this in other toolsets
> (e.g. como).
>
> > > +flags gcc.compile CFLAGS <warnings>off : -w ;
> > > +flags gcc.compile CFLAGS <warnings>all : -Wall ;
> >
> >I'd argue that <warnings>all should be a default. Noted that gcc.jam now
> >has a
> >hardcoded -Wall, so:
> >
> >1. You proabably need to remove that hardcode, or verify that feature
> >indeed
> >overrides -Wall (I think so).
> >2. If you remove hardcode, I'd prefer <warnings>all to be default.
>
> I didn't notice that! You are right - it should be removed and
> <warnings>all made default. Note that this will significanly increase the
> number of warnings issued (especially by the msvc compiler)!

Well, #pragma is they key for that compiler?

> In a previous incarnation, I had a 'default' value for warnings that would
> be "the tool's default list of enabled warnings", but it was felt that
> default <==> on. I am happy either way as there are benefits to both
> approaches.

Just as Alexey, I don't see any practical difference between "default" and
"on".

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2
 

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