This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Wno-warning-directives [WasRe: cpplib: Start moving ...]
"Mark D. Baushke" <mdb@gnu.org> writes:
| Geoff Keating <geoffk@geoffk.org> writes:
| >
| > Devang Patel <dpatel@apple.com> writes:
| >
| > Typically a #warning from a system header does indicate an error in
| > the use of that header.
|
| No, a #warning from a system header indicates a warning. A #error
| indicates an error.
|
| On my FreeBSD desktop system at work I see warnings like this:
|
| #warning "this file includes <malloc.h> which is deprecated, use <stdlib.h> instead"
For V3, people are advised to use -Wno-deprecated to silence similar things.
-- Gaby