This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Where to get the code for gcc -Wall
- From: Ian Lance Taylor <iant at google dot com>
- To: shanky <shashank dot gugalia at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 25 May 2009 00:06:15 -0700
- Subject: Re: Where to get the code for gcc -Wall
- References: <23701391.post@talk.nabble.com>
shanky <shashank.gugalia@gmail.com> writes:
> When we pass variable arguments to printf , and compiles the code it
> compiles without any problem but when we use -Wall options it catch the
> mismatch. I just want to know where I can found that piece of code which
> does this all checking.
This particular warning is -Wformat, which is turned on by -Wall. The
code to implement -Wformat is mostly in the file gcc/c-format.c.
Ian