This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to ignore Wall errors for a portion of code
- From: Joezac Zachariah <joezac at cadence dot com>
- To: Tim Prince <tprince at myrealbox dot com>
- Cc: Joezac Zachariah <joezac at cadence dot com>, gcc-help at gcc dot gnu dot org
- Date: Mon, 15 Jan 2007 19:07:38 +0530
- Subject: Re: How to ignore Wall errors for a portion of code
- References: <45AB58E9.5070901@cadence.com> <45AB7776.6050706@myrealbox.com>
Hi,
Thanks for your fast response. I am not sure whether my query was clear.
I am using 'make' to compile the code and I am passing -Wall -Werror
options. My requirement is that the Wall checks need to be done only on
a portion of the code in a given '.c' file and not on the complete file.
Is there a way or a Wall option with which I could switch the -Wall
check 'off' for a portion of the file?
Thanks,
Joezac
Tim Prince wrote:
Joezac Zachariah wrote:
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
The usual way is to use make
http://www.gnu.org/software/make/manual/make.html