1 # Copyright 2017 Rene Rivera
2 # Distributed under the Boost Software License, Version 1.0.
3 # (See accompanying file LICENSE.txt or copy at
4 # https://www.bfgroup.xyz/b2/LICENSE.txt)
10 [[bbv2.builtin.features.warnings]]`warnings`::
11 *Allowed values:* `on`, `all`, `extra`, `pedantic`, `off`.
13 Controls the warning level of compilers.
15 `on`::: enable default/"reasonable" warning level.
16 `all`::: enable most warnings.
17 `extra`::: enable extra, possibly conflicting, warnings.
18 `pedantic`::: enable likely inconsequential, and conflicting, warnings.
19 `off`::: disable all warnings.
21 Default value is `all`.
25 feature.feature warnings
26 : on all extra pedantic off
27 : incidental propagated ;
31 [[bbv2.builtin.features.warnings-as-errors]]`warnings-as-errors`::
32 *Allowed values:* `off`, `on`.
34 Makes it possible to treat warnings as errors and abort compilation on a
39 feature.feature warnings-as-errors
41 : incidental propagated ;