Re: error: unknown warning group '-Wcpp', ignored (#pragma GCC)

看板FB_current作者時間12年前 (2013/05/25 19:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
--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--
文章代碼(AID): #1He9dktp (FB_current)
文章代碼(AID): #1He9dktp (FB_current)