How to ignore Wall errors for a portion of code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux