Created attachment 201558 [details] patch 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] exprfilter_scanner.rl:114:1: warning: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing] exprfilter_scanner.rl:114:1: warning: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing] exprfilter_scanner.rl:114:1: warning: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing] exprfilter_scanner.rl:114:1: warning: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing] exprfilter_scanner.rl:114:1: warning: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing] Add -Wno-error=narrowing to CXXFLAGS on GCC architectures to fix build. Tested on powerpc64 and amd64. Hardware sponsored by IntegriCloud.
A commit references this bug: Author: linimon Date: Mon Feb 4 11:52:13 UTC 2019 New revision: 492118 URL: https://svnweb.freebsd.org/changeset/ports/492118 Log: 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) Changes: head/x11-fm/worker/Makefile