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