[Bug 217001] graphics/gle-graphics: fails to build with lang/gcc6 or later
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Feb 11 14:55:19 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217001
Bug ID: 217001
Summary: graphics/gle-graphics: fails to build with lang/gcc6
or later
Product: Ports & Packages
Version: Latest
Hardware: Any
URL: https://gcc.gnu.org/gcc-6/porting_to.html
OS: Any
Status: New
Keywords: needs-patch
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: freebsd-ports-bugs at FreeBSD.org
Reporter: jbeich at FreeBSD.org
CC: gerald at FreeBSD.org, nivit at FreeBSD.org
CC: gerald at FreeBSD.org, nivit at FreeBSD.org
op_def.cpp:224:29: error: narrowing conversion of '4278190080u' from 'unsigned
int' to 'int' inside { } [-Wnarrowing]
{ "END", typ_end, 1, 1} };
^
build log: http://sprunge.us/QNSi
clang++ -std=c++11 has a more clear error message:
op_def.cpp:205:29: error: constant expression evaluates to 4278190080 which
cannot be narrowed to
type 'int' [-Wc++11-narrowing]
{ "CLEAR", typ_switch, 1, GLE_FILL_CLEAR },
^~~~~~~~~~~~~~
./color.h:63:25: note: expanded from macro 'GLE_FILL_CLEAR'
#define GLE_FILL_CLEAR 0XFF000000
^~~~~~~~~~
op_def.cpp:205:29: note: insert an explicit cast to silence this issue
{ "CLEAR", typ_switch, 1, GLE_FILL_CLEAR },
^~~~~~~~~~~~~~
static_cast<int>( )
./color.h:63:25: note: expanded from macro 'GLE_FILL_CLEAR'
#define GLE_FILL_CLEAR 0XFF000000
^~~~~~~~~~
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list