svn commit: r478029 - head/x11-wm/obpager
Tobias Kortkamp
tobik at FreeBSD.org
Sat Aug 25 13:42:45 UTC 2018
Author: tobik
Date: Sat Aug 25 13:42:44 2018
New Revision: 478029
URL: https://svnweb.freebsd.org/changeset/ports/478029
Log:
x11-wm/obpager: Fix build with Clang 6
src/OBPager.cc:937:19: error: non-constant-expression cannot be narrowed from type 'int' to 'char' in initializer list [-Wc++11-narrowing]
char text[2] = { (mDesktopNum % 9) + '1', '\0' };
^~~~~~~~~~~~~~~~~~~~~~~
src/OBPager.cc:937:19: note: insert an explicit cast to silence this issue
char text[2] = { (mDesktopNum % 9) + '1', '\0' };
^~~~~~~~~~~~~~~~~~~~~~~
static_cast<char>( )
1 error generated.
http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/obpager-1.8.log
- Make sure the build respects CXXFLAGS
Modified:
head/x11-wm/obpager/Makefile
Modified: head/x11-wm/obpager/Makefile
==============================================================================
--- head/x11-wm/obpager/Makefile Sat Aug 25 13:11:27 2018 (r478028)
+++ head/x11-wm/obpager/Makefile Sat Aug 25 13:42:44 2018 (r478029)
@@ -13,9 +13,12 @@ LICENSE= GPLv2
BUILD_DEPENDS= gsed:textproc/gsed
-USES= gmake
+USES= compiler gmake
USE_XORG= x11 xext
+CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_clang= -Wno-c++11-narrowing
+MAKE_ARGS= CDEFS="${CXXFLAGS}"
PLIST_FILES= bin/${PORTNAME}
post-patch:
More information about the svn-ports-all
mailing list