aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fm
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2019-02-04 19:52:13 +0800
committerlinimon <linimon@FreeBSD.org>2019-02-04 19:52:13 +0800
commit56c108cf5410f91779c143f7b591bc25affc1210 (patch)
treeeda014f9535e515edc3ddf573a857bf38aa9675c /x11-fm
parent3a8db55579d8724384a4ae8dae248374aebb33ea (diff)
downloadfreebsd-ports-gnome-56c108cf5410f91779c143f7b591bc25affc1210.tar.gz
freebsd-ports-gnome-56c108cf5410f91779c143f7b591bc25affc1210.tar.zst
freebsd-ports-gnome-56c108cf5410f91779c143f7b591bc25affc1210.zip
When compiling this port with GCC, the following warning is treated as error:
exprfilter_scanner.rl:114:1: warning: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing] Add -Wno-error=narrowing to CXXFLAGS on GCC-based architectures to fix the build. PR: 235349 Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket)
Diffstat (limited to 'x11-fm')
-rw-r--r--x11-fm/worker/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/x11-fm/worker/Makefile b/x11-fm/worker/Makefile
index 265333432b3a..481f1defb159 100644
--- a/x11-fm/worker/Makefile
+++ b/x11-fm/worker/Makefile
@@ -46,4 +46,8 @@ LUA_USES= lua:51
XFT_CONFIGURE_OFF= --disable-xft
XFT_USE= xorg=xft
+.if exists(/usr/lib/libstdc++.so)
+CXXFLAGS+= -Wno-error=narrowing
+.endif
+
.include <bsd.port.mk>