Garima created LOGCXX-463: ----------------------------- Summary: 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.10.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)