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

看板FB_current作者時間12年前 (2013/05/25 18:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
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 _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1He9CZDh (FB_current)
文章代碼(AID): #1He9CZDh (FB_current)