Date: Sat, 25 May 2013 12:37:49 +0200 From: Lars Engels <lars.engels@0x20.net> To: Niclas Zeising <zeising+freebsd@daemonic.se> Cc: FreeBSD Current <freebsd-current@freebsd.org>, "O. Hartmann" <ohartman@zedat.fu-berlin.de> Subject: Re: error: unknown warning group '-Wcpp', ignored (#pragma GCC) Message-ID: <20130525103749.GQ32935@e-new.0x20.net> In-Reply-To: <51A08EEB.9070201@daemonic.se> References: <1369476551.1618.42.camel@thor.walstatt.dyndns.org> <51A08EEB.9070201@daemonic.se>
next in thread | previous in thread | raw e-mail | index | archive | help
--72zhRRUwqu3nWC5W Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 25, 2013 at 12:14:03PM +0200, Niclas Zeising wrote: > On 05/25/13 12:09, O. Hartmann wrote: > > With CLANG on FreeBSD 10.0-CURRENT r250968, I get this error message in > > a source I try to port. > >=20 > > I did not find any suitable "official" workaround and I'd like to avoid > > patching all files containing those #pragma statements. Is there a > > geenral solution on FreeBSD to overcome this? > >=20 > > error: unknown warning group '-Wcpp', ignored > > [-Werror,-Wunknown-pragmas] > > # pragma GCC diagnostic ignored "-Wcpp" > >=20 >=20 > You could always remove -Werror or -Wunknown-pragmas from CFLAGS. Or > add -Wno-unknown-pragmas if -Wunknown-pragmas is turned on by -Wall or > something like that. > Regards! Just build with -DNO_WERROR. --72zhRRUwqu3nWC5W Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlGglH0ACgkQKc512sD3afhbRwCgqMw3W6cJ5sf5Q90zvoGhotuN osIAn2M9ljXs3JNaweff+azexlbjw6Oc =5hsZ -----END PGP SIGNATURE----- --72zhRRUwqu3nWC5W--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130525103749.GQ32935>