svn commit: r478030 - head/x11-wm/jewel
Tobias Kortkamp
tobik at FreeBSD.org
Sat Aug 25 13:48:10 UTC 2018
Author: tobik
Date: Sat Aug 25 13:48:09 2018
New Revision: 478030
URL: https://svnweb.freebsd.org/changeset/ports/478030
Log:
x11-wm/jewel: Fix build with Clang 6
windowmanager.cc:1929:24: error: non-constant-expression cannot be narrowed from type 'int' to 'CARD32' (aka 'unsigned long') in initializer list [-Wc++11-narrowing]
CARD32 geometry[] = { xres, yres };
^~~~
windowmanager.cc:1929:24: note: insert an explicit cast to silence this issue
CARD32 geometry[] = { xres, yres };
^~~~
static_cast<CARD32>( )
http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/jewel-0.12.41_4.log
- Make sure the build respects CXXFLAGS
Modified:
head/x11-wm/jewel/Makefile
Modified: head/x11-wm/jewel/Makefile
==============================================================================
--- head/x11-wm/jewel/Makefile Sat Aug 25 13:42:44 2018 (r478029)
+++ head/x11-wm/jewel/Makefile Sat Aug 25 13:48:09 2018 (r478030)
@@ -16,8 +16,12 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
ALL_TARGET= all
DOCS= Changelog Changelog.DLR Changelog.jewel INSTALL LICENSE README
PORTDOCS= *
-USES+= gmake
+USES= compiler gmake
USE_XORG= x11 xext xpm
+MAKE_ARGS= CFLAGS="${CXXFLAGS}"
+
+CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang= -Wno-c++11-narrowing
OPTIONS_DEFINE= DOCS
More information about the svn-ports-head
mailing list