[Boost-bugs] [Boost C++ Libraries] #7643: Several [-Wnarrowing] warnings reported with gcc 4.7.2 with C++11 enabled

Subject: [Boost-bugs] [Boost C++ Libraries] #7643: Several [-Wnarrowing] warnings reported with gcc 4.7.2 with C++11 enabled
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-11-06 00:24:52


#7643: Several [-Wnarrowing] warnings reported with gcc 4.7.2 with C++11 enabled
----------------------------------+-----------------------------------------
 Reporter: steven.lemay@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: regex
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: -Wnarrowing |
----------------------------------+-----------------------------------------
 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:


 Line 27367: ./boost/regex/v4/cpp_regex_traits.hpp:1069:34: warning:
 narrowing conversion of '2147483648u' from 'unsigned int' to 'int' inside
 { } [-Wnarrowing]
         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 ''\37777777605'' from 'char' to 'const
 wchar_t' inside { } [-Wnarrowing]
         Line 27430: ./boost/regex/v4/regex_traits_defaults.hpp:331:64:
 warning: narrowing conversion of ''\37777777605'' 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]

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7643>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC