games/rtb: Fix build with Clang 6

Structs.cc:50:5: error: constant expression evaluates to 255 which cannot be narrowed to type 'gchar' (aka 'char') [-Wc++11-narrowing]
    0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xff, 0x3f,
    ^~~~

http://beefy11.nyi.freebsd.org/data/head-i386-default/p478276_s338342/logs/errors/RealTimeBattle-1.0.8_11.log
This commit is contained in:
Tobias Kortkamp 2018-09-01 09:41:42 +00:00
parent 7ec8ad352d
commit 7774e046ea
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=478664

View file

@ -16,11 +16,13 @@ LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= gsed:textproc/gsed BUILD_DEPENDS= gsed:textproc/gsed
USES= gettext gmake perl5 pkgconfig python:2.7 tar:bzip2 USES= compiler gettext gmake perl5 pkgconfig python:2.7 tar:bzip2
USE_GNOME= gtk20 USE_GNOME= gtk20
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-rtb-dir=${PREFIX}/lib/${PORTNAME} CONFIGURE_ARGS= --with-rtb-dir=${PREFIX}/lib/${PORTNAME}
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_clang= -Wno-c++11-narrowing
CPPFLAGS+= -I${LOCALBASE}/include CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib LDFLAGS+= -L${LOCALBASE}/lib