From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11072 invoked by alias); 4 Jan 2010 22:39:27 -0000 Received: (qmail 11061 invoked by uid 22791); 4 Jan 2010 22:39:27 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.digium.com (HELO mail.digium.com) (216.207.245.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 04 Jan 2010 22:39:23 +0000 Received: from jupiler.digium.internal ([10.19.29.150] helo=jupiler.digium.com) by mail.digium.com with esmtp (Exim 4.69) (envelope-from ) id 1NRva3-00018J-UE; Mon, 04 Jan 2010 16:39:19 -0600 Received: from localhost (localhost.localdomain [127.0.0.1]) by jupiler.digium.com (Postfix) with ESMTP id E2C9FDFC82D; Mon, 4 Jan 2010 16:39:19 -0600 (CST) Received: from jupiler.digium.com ([127.0.0.1]) by localhost (jupiler.digium.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cxXdh6+Hf15U; Mon, 4 Jan 2010 16:39:19 -0600 (CST) Received: from [10.24.250.46] (unknown [10.24.250.46]) (Authenticated sender: kpfleming) by jupiler.digium.com (Postfix) with ESMTP id 9F32EDFC83F; Mon, 4 Jan 2010 16:39:19 -0600 (CST) Message-ID: <4B426E17.3050005@digium.com> Date: Mon, 04 Jan 2010 22:39:00 -0000 From: "Kevin P. Fleming" User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Pierre Wieser CC: gcc-help@gcc.gnu.org Subject: Re: Searching for a gcc option References: <769836687.286.1262637310586.JavaMail.root@stormy.trychlos.pwi> In-Reply-To: <769836687.286.1262637310586.JavaMail.root@stormy.trychlos.pwi> OpenPGP: id=05FB8DB2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2010-01/txt/msg00041.txt.bz2 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@digium.com Check us out at www.digium.com & www.asterisk.org