Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 May 2013 12:14:03 +0200
From:      Niclas Zeising <zeising+freebsd@daemonic.se>
To:        "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: error: unknown warning group '-Wcpp', ignored (#pragma GCC)
Message-ID:  <51A08EEB.9070201@daemonic.se>
In-Reply-To: <1369476551.1618.42.camel@thor.walstatt.dyndns.org>
References:  <1369476551.1618.42.camel@thor.walstatt.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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!
-- 
Niclas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51A08EEB.9070201>