public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* How to ignore Wall errors for a portion of code
@ 2007-01-15 10:35 Joezac Zachariah
  2007-01-15 12:45 ` Tim Prince
  0 siblings, 1 reply; 8+ messages in thread
From: Joezac Zachariah @ 2007-01-15 10:35 UTC (permalink / raw)
  To: gcc-help



i,

I am compiling a C code with -Wall -Werror options. In my File I am 
including another C file which has many Wall errors, which I don't want 
to check for. Is there a way I can exclude some portion of code from a 
given file using some kind of #define scheme

void func1()
{
.......
}

#define DISABLE_WERROR 1
include myfile.c
#undef ENABLE_WERROR

void func2()
{
..............
}

Thanks,
Joezac




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-01-20  6:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-15 10:35 How to ignore Wall errors for a portion of code Joezac Zachariah
2007-01-15 12:45 ` Tim Prince
2007-01-15 13:37   ` Joezac Zachariah
2007-01-15 14:30     ` John Love-Jensen
2007-01-15 14:51       ` Brian Dessent
2007-01-15 15:25       ` Segher Boessenkool
2007-01-20  6:13       ` Joezac Zachariah
2007-01-15 15:18     ` Tim Prince

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).