1# Copyright 2017 Rene Rivera 2# Distributed under the Boost Software License, Version 1.0. 3# (See accompanying file LICENSE_1_0.txt or copy at 4# http://www.boost.org/LICENSE_1_0.txt) 5 6import feature ; 7 8#| tag::doc[] 9 10[[bbv2.builtin.features.warnings]]`warnings`:: 11*Allowed values:* `on`, `all`, `extra`, `pedantic`, `off`. 12+ 13Controls 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+ 21Default value is `all`. 22 23|# # end::doc[] 24 25feature.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+ 34Makes it possible to treat warnings as errors and abort compilation on a 35warning. 36 37|# # end::doc[] 38 39feature.feature warnings-as-errors 40 : off on 41 : incidental propagated ; 42