You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by "Thorsten Schöning (JIRA)" <lo...@logging.apache.org> on 2016/03/17 13:00:38 UTC
[jira] [Resolved] (LOGCXX-463) error: narrowing conversion with gcc
6
[ https://issues.apache.org/jira/browse/LOGCXX-463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thorsten Schöning resolved LOGCXX-463.
--------------------------------------
Resolution: Fixed
Fix Version/s: (was: 0.10.0)
0.11.0
Please try again with a current trunk, your problem reads much like the one from LOGCXX-400, which was already reported against 0.10.0.
> error: narrowing conversion with gcc 6
> --------------------------------------
>
> Key: LOGCXX-463
> URL: https://issues.apache.org/jira/browse/LOGCXX-463
> Project: Log4cxx
> Issue Type: Bug
> Environment: using gcc-6
> Reporter: Garima
> Fix For: 0.11.0
>
>
> log4cxx package fails to build with gcc-6 with following error:
> locationinfo.cpp: In member function 'void log4cxx::spi::LocationInfo::write(log4cxx::helpers::ObjectOutputStream&, log4cxx::helpers::Pool&) const':
> locationinfo.cpp:163:21: error: narrowing conversion of '237' from 'int' to 'char' inside { } [-Wnarrowing]
> 0x78, 0x70 };
> ^
> locationinfo.cpp:163:21: error: narrowing conversion of '153' from 'int' to 'char' inside { } [-Wnarrowing]
> locationinfo.cpp:163:21: error: narrowing conversion of '187' from 'int' to 'char' inside { } [-Wnarrowing]
> locationinfo.cpp:163:21: error: narrowing conversion of '225' from 'int' to 'char' inside { } [-Wnarrowing]
> locationinfo.cpp:163:21: error: narrowing conversion of '145' from 'int' to 'char' inside { } [-Wnarrowing]
> locationinfo.cpp:163:21: error: narrowing conversion of '165' from 'int' to 'char' inside { } [-Wnarrowing]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)