Where to get the code for gcc -Wall

Ian Lance Taylor iant@google.com
Mon May 25 09:29:00 GMT 2009


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



More information about the Gcc-help mailing list