]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/src/tools/features/warnings-feature.jam
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / src / tools / features / warnings-feature.jam
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)
5
6 import feature ;
7
8 #| tag::doc[]
9
10 [[bbv2.builtin.features.warnings]]`warnings`::
11 *Allowed values:* `on`, `all`, `extra`, `pedantic`, `off`.
12 +
13 Controls the warning level of compilers.
14 +
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.
20 +
21 Default value is `all`.
22
23 |# # end::doc[]
24
25 feature.feature warnings
26 : on all extra pedantic off
27 : incidental propagated ;
28
29 #| tag::doc[]
30
31 [[bbv2.builtin.features.warnings-as-errors]]`warnings-as-errors`::
32 *Allowed values:* `off`, `on`.
33 +
34 Makes it possible to treat warnings as errors and abort compilation on a
35 warning.
36
37 |# # end::doc[]
38
39 feature.feature warnings-as-errors
40 : off on
41 : incidental propagated ;