Skip to content

build/Jamfile overrides <warnings> #223

@pdimov

Description

@pdimov

As mentioned in #219, linking to /boost/serialization//boost_serialization/<warnings>off doesn't propagate <warnings>off to Regex, which breaks when warnings-as-errors is on.

That's because build/Jamfile contains

project : requirements
   # default to all warnings on:
   <warnings>all
   : common-requirements <library>$(boost_dependencies)
   : requirements <library>$(boost_dependencies_private)
   ;

which overrides the inherited <warnings>off with <warnings>all.

The comment says "default to all warnings on", but since it's a requirement, it's not a default and is always applied.

It should be put in default-build instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions