Re: error: unknown warning group '-Wcpp', ignored (#pragma GCC)
--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--
討論串 (同標題文章)
完整討論串 (本文為第 3 之 3 篇):