Opened 10 years ago
Closed 10 years ago
#7263 closed Bugs (wontfix)
regex_traits [-Wnarrowing]
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | regex |
Version: | Boost 1.51.0 | Severity: | Problem |
Keywords: | build gcc 4.7.1 c++11 | Cc: |
Description
Boost 1.51 build issue for gcc 4.7.1/C++11 enabled. Issue repeats many times.
qcc.compile.c++ D:\boostBuild_QCC_1_51_0\boost\bin.v2\libs\regex\build\qcc\release\link-static\target-os-qnxnto\threadapi-pthread\threading-multi\cpp_regex_traits.o In file included from ./boost/regex/v4/regex_traits.hpp:39:0,
from ./boost/regex/regex_traits.hpp:27, from libs\regex\build\..\src\cpp_regex_traits.cpp:22:
./boost/regex/v4/cpp_regex_traits.hpp: In instantiation of 'static boost::static_mutex& boost::cpp_regex_traits<charT>::get_mutex_inst() [with charT = char]': ./boost/regex/v4/cpp_regex_traits.hpp:1059:49: required from 'static std::string boost::cpp_regex_traits<charT>::get_catalog_name() [with charT = char; std::string = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]' libs\regex\build\..\src\cpp_regex_traits.cpp:44:49: required from here ./boost/regex/v4/cpp_regex_traits.hpp:1069:34: warning: narrowing conversion of '2147483648u' from 'unsigned int' to 'int' inside { } [-Wnarrowing]
================= BJAM ==================
bjam -a -q -j4 --prefix=%DRIVE%\boost --build-type=minimal --build-dir=%DRIVE%\boostBuild_QCC_%BOOSTVER% --layout=system toolset=qcc target-os=qnxnto threadapi=pthread --variant=release link=static threading=multi runtime-link=shared cxxflags="-DFD_SETSIZE=2048 -march=k8-sse3 -mtune=k8-sse3 -mmmx -msse3 -mfpmath=sse -mno-3dnow -mstackrealign -Wc,-fPIC,-fnothrow-opt,-std=c++11,-std=gnu++11" --without-context --without-mpi --without-python install >build.log 2>&1
Attachments (1)
Change History (2)
by , 10 years ago
Attachment: | build_log.zip added |
---|
comment:1 by , 10 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
I don't think there's anything we can do to fix this: the warning comes from assigning PTHREAD_MUTEX_INITIALIZER to a pthread_mutex_t. So since the constant that generates the warning is defined in pthread.h I don't see what we can do :-(
If you can figure out a patch that would fix this then please do reopen.
build output log