diff options
author | linimon <linimon@FreeBSD.org> | 2019-02-04 19:52:13 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2019-02-04 19:52:13 +0800 |
commit | 56c108cf5410f91779c143f7b591bc25affc1210 (patch) | |
tree | eda014f9535e515edc3ddf573a857bf38aa9675c /x11-fm | |
parent | 3a8db55579d8724384a4ae8dae248374aebb33ea (diff) | |
download | freebsd-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/Makefile | 4 |
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> |