error: unknown warning group '-Wcpp', ignored (#pragma GCC)
Lars Engels
lars.engels at 0x20.net
Sat May 25 10:37:53 UTC 2013
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.
> >
> > 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?
> >
> > error: unknown warning group '-Wcpp', ignored
> > [-Werror,-Wunknown-pragmas]
> > # pragma GCC diagnostic ignored "-Wcpp"
> >
>
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20130525/432b647b/attachment.sig>
More information about the freebsd-current
mailing list