aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/boost/toolchain.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-24 00:49:07 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-24 10:57:12 +0300
commitef0e39bac99da2078b6bcb4bd7071ca34f6a3005 (patch)
treeaaab3983f2a8daf960ee5b1cccaf095e7c9e4f4d /project/boost/toolchain.py
parentv2.0 (diff)
downloadcmake-common-ef0e39bac99da2078b6bcb4bd7071ca34f6a3005.tar.gz
cmake-common-ef0e39bac99da2078b6bcb4bd7071ca34f6a3005.zip
project.boost: turn off warnings unless --verbose
Diffstat (limited to 'project/boost/toolchain.py')
-rw-r--r--project/boost/toolchain.py19
1 files changed, 6 insertions, 13 deletions
diff --git a/project/boost/toolchain.py b/project/boost/toolchain.py
index 8dd11da..e49914c 100644
--- a/project/boost/toolchain.py
+++ b/project/boost/toolchain.py
@@ -251,14 +251,7 @@ class GCC(CustomToolchain):
return 'g++'
def get_build_options(self):
- return [
- # TODO: this is a petty attempt to get rid of build warnings in
- # older Boost versions. Revise and expand this list or remove it?
- # warning: 'template<class> class std::auto_ptr' is deprecated
- ('cxxflags', '-Wno-deprecated-declarations'),
- # warning: unnecessary parentheses in declaration of 'assert_arg'
- ('cxxflags', '-Wno-parentheses'),
- ]
+ return []
class MinGW(GCC):
@@ -285,11 +278,11 @@ class Clang(GCC):
options = super().get_build_options()
options += [
('cxxflags', '-DBOOST_USE_WINDOWS_H'),
- # TODO: this is a petty attempt to get rid of build warnings in
- # older Boost versions. Revise and expand this list or remove it?
- # warning: unused typedef 'boost_concept_check464' [-Wunused-local-typedef]
- ('cxxflags', '-Wno-unused-local-typedef'),
- # error: constant expression evaluates to -105 which cannot be narrowed to type 'boost::re_detail::cpp_regex_traits_implementation<char>::char_class_type' (aka 'unsigned int')
+
+ # Even with <warnings>off, the build might sometimes fail with the
+ # following error:
+ #
+ # error: constant expression evaluates to -105 which cannot be narrowed to type 'boost::re_detail::cpp_regex_traits_implementation<char>::char_class_type' (aka 'unsigned int')
('cxxflags', '-Wno-c++11-narrowing'),
]
if project.os.on_windows():