From owner-freebsd-current@FreeBSD.ORG Sat May 25 10:37:53 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8C7BAA6C for ; Sat, 25 May 2013 10:37:53 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from mail.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) by mx1.freebsd.org (Postfix) with ESMTP id 4EBB0A87 for ; Sat, 25 May 2013 10:37:53 +0000 (UTC) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 614DF6A6002; Sat, 25 May 2013 12:37:50 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.5/8.14.5) with ESMTP id r4PAboH5096221; Sat, 25 May 2013 12:37:50 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.5/8.14.5/Submit) id r4PAbnoG095492; Sat, 25 May 2013 12:37:49 +0200 (CEST) (envelope-from lars) Date: Sat, 25 May 2013 12:37:49 +0200 From: Lars Engels To: Niclas Zeising Subject: Re: error: unknown warning group '-Wcpp', ignored (#pragma GCC) Message-ID: <20130525103749.GQ32935@e-new.0x20.net> References: <1369476551.1618.42.camel@thor.walstatt.dyndns.org> <51A08EEB.9070201@daemonic.se> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="72zhRRUwqu3nWC5W" Content-Disposition: inline In-Reply-To: <51A08EEB.9070201@daemonic.se> X-Editor: VIM - Vi IMproved 7.3 X-Operation-System: FreeBSD 8.3-RELEASE-p5 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD Current , "O. Hartmann" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 May 2013 10:37:53 -0000 --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--