This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question on -Werror usage in Makefiles...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]