This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Compiling some files with -Werror?
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: dnovillo at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 16 Jan 2003 15:00:06 -0500 (EST)
- Subject: Re: Compiling some files with -Werror?
- References: <20030116152831.GA1161@tornado.toronto.redhat.com>
> From: Diego Novillo <dnovillo at redhat dot com>
>
> I'd like to add -Werror to CFLAGS when building all the tree-ssa
> files, but I can't enable it globally because many files in the rest
> of the compiler have warnings in them.
Well, you could fix some of these warnings...
>
> Is there a way of specifying a per-file CFLAGS setting?
> Thanks. Diego.
I'm actively working on it. With today's warning sweep checkins, I'm
very close to being able to bootstrap or cross-compile all of the
primary and secondary platforms with -Werror enabled.
Check out this thread for how -Werror will be activated for stage2
only and de-activated on a per-file basis later in the thread.
http://gcc.gnu.org/ml/gcc-patches/2003-01/msg00926.html
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu