This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Passing GCC arguments up from source code
- From: "Hamilton, Steve" <steve dot hamilton at viasat dot com>
- To: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Date: Fri, 2 Aug 2002 13:00:12 -0700
- Subject: Passing GCC arguments up from source code
I'd like a way of passing compiler arguments up from specific source files.
For example, there are certain warning levels that I'd like to apply to
(almost) all of my files, and enforce with '-Werror'. However, there are
some cases that I can't address. For those cases, I'd like to turn off
specific warnings for that file only (e.g., using '#pragma ...'). How can I
do this? Thanks.