Skip to content

Commit

Permalink
Remove -Wextra from default flags [skip ci]
Browse files Browse the repository at this point in the history
Move it to the set of non-CI flags.
  • Loading branch information
mloskot committed May 2, 2019
1 parent 130c7fc commit 7e7bacd
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Jamfile
Expand Up @@ -15,10 +15,10 @@ if ! [ os.environ CI ] && ! [ os.environ AGENT_JOBSTATUS ]
{
DEVELOPMENT_EXTRA_WARNINGS =
<toolset>msvc:<cxxflags>/W4
<toolset>gcc:<cxxflags>"-pedantic -Wcast-align -Wconversion -Wfloat-equal -Wshadow -Wsign-promo -Wstrict-aliasing -Wunused-parameter"
<toolset>clang,<variant>debug:<cxxflags>"-pedantic -Wcast-align -Wconversion -Wfloat-equal -Wshadow -Wsign-promo -Wstrict-aliasing -Wunused-parameter -Wsign-conversion"
<toolset>clang,<variant>release:<cxxflags>"-pedantic -Wcast-align -Wconversion -Wfloat-equal -Wshadow -Wsign-promo -Wstrict-aliasing -Wunused-parameter -Wsign-conversion"
<toolset>darwin:<cxxflags>"-pedantic -Wcast-align -Wconversion -Wfloat-equal -Wshadow -Wsign-promo -Wstrict-aliasing -Wunused-parameter"
<toolset>gcc:<cxxflags>"-pedantic -Wextra -Wcast-align -Wconversion -Wfloat-equal -Wshadow -Wsign-promo -Wstrict-aliasing -Wunused-parameter"
<toolset>clang,<variant>debug:<cxxflags>"-pedantic -Wextra -Wcast-align -Wconversion -Wfloat-equal -Wshadow -Wsign-promo -Wstrict-aliasing -Wunused-parameter -Wsign-conversion"
<toolset>clang,<variant>release:<cxxflags>"-pedantic -Wextra -Wcast-align -Wconversion -Wfloat-equal -Wshadow -Wsign-promo -Wstrict-aliasing -Wunused-parameter -Wsign-conversion"
<toolset>darwin:<cxxflags>"-pedantic -Wextra -Wcast-align -Wconversion -Wfloat-equal -Wshadow -Wsign-promo -Wstrict-aliasing -Wunused-parameter"
;
}

Expand All @@ -32,11 +32,12 @@ project
<toolset>msvc:<define>_CRT_NONSTDC_NO_DEPRECATE
<toolset>msvc:<define>NOMINMAX
<toolset>intel:<debug-symbols>off
<toolset>gcc:<cxxflags>"-fstrict-aliasing -Wextra"
<toolset>darwin:<cxxflags>"-fstrict-aliasing -Wextra"
# variant filter for clang is necessary to allow ubsan_* variants declare distinct set of <cxxflags>
<toolset>clang,<variant>debug:<cxxflags>"-fstrict-aliasing -Wextra"
<toolset>clang,<variant>release:<cxxflags>"-fstrict-aliasing -Wextra"
<toolset>gcc:<cxxflags>"-fstrict-aliasing"
<toolset>darwin:<cxxflags>"-fstrict-aliasing"
# variant filter for clang is necessary to allow ubsan_*
# custom variants declare distinct set of <cxxflags>
<toolset>clang,<variant>debug:<cxxflags>"-fstrict-aliasing"
<toolset>clang,<variant>release:<cxxflags>"-fstrict-aliasing"
$(DEVELOPMENT_EXTRA_WARNINGS)
[ requires
cxx11_constexpr
Expand Down

0 comments on commit 7e7bacd

Please sign in to comment.