mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
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
This commit is contained in:
parent
5421a85950
commit
b1c5f262f7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=478029
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user