Re: Searching for a gcc option

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

 



Pierre Wieser wrote:

> I'm afraid that my code may sometimes embed some sentences such as
>     printf( "blah blah" );
> instead of
>     printf( "%s", "blah blah" );
> 
> For the second time, a Gentoo user complains about a syntax error
> in the first form, probably due to a particular configuration option
> of the Gentoo gcc.
> 
> Might someone be kind enough to point out which gcc option I should
> use in order to be warned on this type of error, please ?
> This may give better quality to my releases...

This is -Wformat.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kpfleming@xxxxxxxxxx
Check us out at www.digium.com & www.asterisk.org

[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