Boost C++ Libraries: Ticket #7643: Several [-Wnarrowing] warnings reported with gcc 4.7.2 with C++11 enabled https://svn.boost.org/trac10/ticket/7643 <p> Compiling boost 1.52 with gcc 4.7.2 with -std=c++11 -std=gnu++11 reports several repeating narrowing warnings. One version of each is shown: </p> <p> Line 27367: ./boost/regex/v4/cpp_regex_traits.hpp:1069:34: warning: narrowing conversion of '2147483648u' from 'unsigned int' to 'int' inside { } [-Wnarrowing] </p> <blockquote> <p> Line 27372: libs\regex\build\..\src\regex.cpp:195:64: warning: narrowing conversion of '2147483648u' from 'unsigned int' to 'int' inside { } [-Wnarrowing] Line 27403: ./boost/regex/pending/object_cache.hpp:64:37: warning: narrowing conversion of '2147483648u' from 'unsigned int' to 'int' inside { } [-Wnarrowing] Line 27429: ./boost/regex/v4/regex_traits_defaults.hpp:329:73: warning: narrowing conversion of <em>\37777777605</em> from 'char' to 'const wchar_t' inside { } [-Wnarrowing] Line 27430: ./boost/regex/v4/regex_traits_defaults.hpp:331:64: warning: narrowing conversion of <em>\37777777605</em> from 'char' to 'const wchar_t' inside { } [-Wnarrowing] Line 27751: libs\thread\src\pthread\once.cpp:18:60: warning: narrowing conversion of '2147483648u' from 'unsigned int' to 'int' inside { } [-Wnarrowing] Line 27752: libs\thread\src\pthread\once.cpp:24:47: warning: narrowing conversion of '2147483648u' from 'unsigned int' to 'int' inside { } [-Wnarrowing] </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7643 Trac 1.4.3 John Maddock Thu, 29 Nov 2012 09:57:11 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7643#comment:1 https://svn.boost.org/trac10/ticket/7643#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> Duplicates <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7263" title="#7263: Bugs: regex_traits [-Wnarrowing] (closed: wontfix)">#7263</a>. </p> <p> As mentioned previously, these are caused by the definition of PTHREAD_MUTUX_INITIALIZER in pthread.h. I'm unable to reproduce on ubuntu x64, so I suspect your Linux distro is the culprit. </p> Ticket