archivers/ccmix: unbreak the build against unsigned-by-default char
On ARM, PowerPC, RISC-V (of the architectures supported by FreeBSD) char type is unsigned by default, which causes the following build error due to incorrect array declaration: mixkey/mix_dexoder.cpp:17:5: error: constant expression evaluates to -1 which cannot be narrowed to type 'char' [-Wc++11-narrowing]
This commit is contained in:
parent
2aab13bac8
commit
c8cf818032
@ -26,6 +26,8 @@ post-patch:
|
||||
@${REINPLACE_CMD} -e '/ccmix program usage/s,/n,\\n, ; \
|
||||
/gmd_dir/s,/usr/share/ccmix,${DATADIR},' \
|
||||
${WRKSRC}/src/ccmix.cpp
|
||||
@${REINPLACE_CMD} -e '/char2num/s,const static,& signed,' \
|
||||
${WRKSRC}/src/mixkey/mix_dexoder.cpp
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/build/* \
|
||||
|
Loading…
Reference in New Issue
Block a user