This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Question on -Werror usage in Makefiles...
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, gcc-patches at gcc dot gnu dot org
- Date: Sat, 01 Nov 2003 12:43:12 -0800
- Subject: Re: Question on -Werror usage in Makefiles...
- References: <u84qxwqhnk.fsf@gromit.moeb><200310261407.h9QE7CHx013098@caip.rutgers.edu><u8u15wyrhm.fsf@gromit.moeb><200310261617.h9QGHLUL009883@caip.rutgers.edu><u8r810x8e2.fsf@gromit.moeb> <871xszj38t.fsf@egil.codesourcery.com><u8n0bnyj1r.fsf@gromit.moeb> <u8u15rzslg.fsf@gromit.moeb><87brrzlnnu.fsf@egil.codesourcery.com> <u8fzhbxlhm.fsf@gromit.moeb><874qxqjs5p.fsf@egil.codesourcery.com> <hohe1pr4pf.fsf@reger.suse.de><87d6cd8im5.fsf@egil.codesourcery.com> <u84qxp6snj.fsf@gromit.moeb><87oevxgjwz.fsf@codesourcery.com><200311010223.hA12N1VQ005681@caip.rutgers.edu><u83cd810t5.fsf@gromit.moeb> <u8y8v0ynms.fsf@gromit.moeb><u8oevwyn1w.fsf@gromit.moeb>
Andreas Jaeger <aj@suse.de> writes:
>> Digging deeper into this, I see that the following should do the trick
>> - but doesn't:
>> SYSCALLS.c.X-warn = -Wno-error
>>
>> GCC_CFLAGS should include WARN_CFLAGS for this to work.
>>
>> I'm testing now the appended patch. Ok to commit this version if it
>> passes bootstrap on x86_64-linux-gnu?
>
> My change adds STRICT_WARN for the files which then enables additional
> warnings. I'm not sure whether we want this :-(
No, I don't think we do, at least not yet. I suggest you add
$($@-warn)
directly to GCC_CFLAGS. That will make SYSCALLS.c.X-warn = -Wno-error
work, without triggering additional warnings.
zw