aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authortobik <tobik@FreeBSD.org>2018-08-25 21:54:30 +0800
committertobik <tobik@FreeBSD.org>2018-08-25 21:54:30 +0800
commitcab4548170aa4ba1157df1e02f87d02716dd9005 (patch)
tree4f15d1eea54f556e516cb8081c5df1ae0832677f /x11-toolkits
parent8892bd7c4d3d2380d2e830b144fe3a11db2ba9be (diff)
downloadfreebsd-ports-gnome-cab4548170aa4ba1157df1e02f87d02716dd9005.tar.gz
freebsd-ports-gnome-cab4548170aa4ba1157df1e02f87d02716dd9005.tar.zst
freebsd-ports-gnome-cab4548170aa4ba1157df1e02f87d02716dd9005.zip
x11-toolkits/v: Fix build with Clang 6
vchkboxc.cxx:43:4: error: constant expression evaluates to 255 which cannot be narrowed to type 'char' [-Wc++11-narrowing] 0xff, 0x0f, 0x03, 0x0c, 0x05, 0x0a, 0x09, 0x09, 0x91, 0x08, 0x61, 0x08, ^~~~ vchkboxc.cxx:43:4: note: insert an explicit cast to silence this issue 0xff, 0x0f, 0x03, 0x0c, 0x05, 0x0a, 0x09, 0x09, 0x91, 0x08, 0x61, 0x08, ^~~~ static_cast<char>( ) http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/v-1.90_6.log
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/v/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/x11-toolkits/v/Makefile b/x11-toolkits/v/Makefile
index 864b932c5e03..ab71b1d55e4b 100644
--- a/x11-toolkits/v/Makefile
+++ b/x11-toolkits/v/Makefile
@@ -12,9 +12,12 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
MAINTAINER= ports@FreeBSD.org
COMMENT= C++ GUI development framework for X11 and Microsoft Windows
-USES= dos2unix gmake
+USES= compiler dos2unix gmake
USE_XORG= x11 xt xmu xaw
MAKE_ENV= INSTALLDIR=${PREFIX} HOMEV=${WRKSRC}
+# Build ignores CXXFLAGS
+CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}}
+CFLAGS_clang= -Wno-c++11-narrowing
WRKSRC= ${WRKDIR}/home/vgui