From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10012 invoked by alias); 31 Aug 2010 22:13:52 -0000 Received: (qmail 10004 invoked by uid 22791); 31 Aug 2010 22:13:51 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 31 Aug 2010 22:13:48 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7VMDIEG032569 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 31 Aug 2010 18:13:18 -0400 Received: from host1.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o7VMDGA2011467 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 31 Aug 2010 18:13:18 -0400 Received: from host1.dyn.jankratochvil.net (localhost [127.0.0.1]) by host1.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id o7VMDFHR015115; Wed, 1 Sep 2010 00:13:15 +0200 Received: (from jkratoch@localhost) by host1.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id o7VMDE1x015114; Wed, 1 Sep 2010 00:13:14 +0200 Date: Tue, 31 Aug 2010 22:13:00 -0000 From: Jan Kratochvil To: Joel Brobecker Cc: Pedro Alves , gdb-patches@sourceware.org Subject: Re: [commit] Build memmem with -Wno-error. Message-ID: <20100831221314.GA12272@host1.dyn.jankratochvil.net> References: <1283281706-30409-1-git-send-email-brobecker@adacore.com> <201008312134.16818.pedro@codesourcery.com> <20100831212223.GO2986@adacore.com> <201008312259.20672.pedro@codesourcery.com> <20100831220720.GQ2986@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100831220720.GQ2986@adacore.com> User-Agent: Mutt/1.5.20 (2009-12-10) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-08/txt/msg00583.txt.bz2 On Wed, 01 Sep 2010 00:07:20 +0200, Joel Brobecker wrote: > As far as I could tell, there is some configury to avoid the use > of that flag if the compiler does not support it. Just there could be a GCC historical moment when the message warning: format not a string literal, argument types not checked was already produced while neither -Wformat-nonliteral nor -Wno-format-nonliteral was yet supported. The change enabling -Werror in such case would break it. But let's pretend -Wformat-nonliteral + -Wno-format-nonliteral were introduced at the moment warning: format not a string literal, argument types not checked was introduced. (I will check it in later.) Thanks, Jan