How to ignore Wall errors for a portion of code
Joezac Zachariah
joezac@cadence.com
Mon Jan 15 10:35:00 GMT 2007
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
More information about the Gcc-help
mailing list