Question on -Werror usage in Makefiles...
Zack Weinberg
zack@codesourcery.com
Sat Nov 1 20:43:00 GMT 2003
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
More information about the Gcc-patches
mailing list