Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Aug 2018 13:48:10 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r478030 - head/x11-wm/jewel
Message-ID:  <201808251348.w7PDmAwv019452@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808251348.w7PDmAwv019452>