[Bug 226389] x11-wm/fluxbox: fix build on armv6
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Mar 6 11:17:28 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226389
Bug ID: 226389
Summary: x11-wm/fluxbox: fix build on armv6
Product: Ports & Packages
Version: Latest
Hardware: arm
URL: http://beefy8.nyi.freebsd.org/data/head-armv6-default/
p463545_s330365/logs/errors/fluxbox-1.3.7_1.log
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: Individual Port(s)
Assignee: jgh at FreeBSD.org
Reporter: mikael.urankar at gmail.com
CC: freebsd-arm at FreeBSD.org
Flags: maintainer-feedback?(jgh at FreeBSD.org)
CC: freebsd-arm at FreeBSD.org
Assignee: jgh at FreeBSD.org
Created attachment 191246
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=191246&action=edit
patch
Hi,
fluxbox doesn't compile on arm:
/nxb-bin/usr/bin/c++ -DHAVE_CONFIG_H -I. -I/usr/local/include/fribidi
-I/usr/local/include -include ./config.h -I./src -I./src -I./src/FbTk -I./nls
-I/usr/local/include -DLIBICONV_PLUG -I/usr/local/include -D_THREAD_SAFE
-pthread -O2 -pipe -DLIBICONV_PLUG -fno-strict-aliasing -DLIBICONV_PLUG -MT
src/fluxbox-Ewmh.o -MD -MP -MF src/.deps/fluxbox-Ewmh.Tpo -c -o
src/fluxbox-Ewmh.o `test -f 'src/Ewmh.cc' || echo './'`src/Ewmh.cc
src/Ewmh.cc:917:22: error: non-constant-expression cannot be narrowed from type
'unsigned int' to 'long' in initializer list [-Wc++11-narrowing]
long value[2] = {screen.width(), screen.height()};
^~~~~~~~~~~~~~
src/Ewmh.cc:917:22: note: insert an explicit cast to silence this issue
long value[2] = {screen.width(), screen.height()};
^~~~~~~~~~~~~~
static_cast<long>( )
src/Ewmh.cc:917:38: error: non-constant-expression cannot be narrowed from type
'unsigned int' to 'long' in initializer list [-Wc++11-narrowing]
long value[2] = {screen.width(), screen.height()};
^~~~~~~~~~~~~~~
src/Ewmh.cc:917:38: note: insert an explicit cast to silence this issue
long value[2] = {screen.width(), screen.height()};
^~~~~~~~~~~~~~~
static_cast<long>( )
2 errors generated.
The attached patch fixes the build.
Thanks in advance
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list