From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10111 invoked by alias); 6 Sep 2018 03:39:24 -0000 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 Received: (qmail 10100 invoked by uid 89); 6 Sep 2018 03:39:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=traveling, tracked, his X-HELO: gateway34.websitewelcome.com Received: from gateway34.websitewelcome.com (HELO gateway34.websitewelcome.com) (192.185.149.101) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 06 Sep 2018 03:39:23 +0000 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway34.websitewelcome.com (Postfix) with ESMTP id A31BB559E40 for ; Wed, 5 Sep 2018 22:39:21 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id xl8Fff3rVbXuJxl8Tfz6rB; Wed, 05 Sep 2018 22:39:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:MIME-Version :Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BNsnyq7MbF3YJtjfP+WYZQCGgLxWvqemtuszvUSvsP4=; b=QQAavsczObbhzHB3EdwExnYBic 6vUoSaNCxB5x9OE7pv0bq7cPTlLspjbL4xIYBTHS2yIhL07E+ZQaXFwI1tZczbqama27pOVpKpuVO hBnfIVWdNlTZlgYNtUC6F1MNI; Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:43798 helo=pokyo.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fxl8F-001PJT-G2 for gdb-patches@sourceware.org; Wed, 05 Sep 2018 22:38:59 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Subject: [FYI 0/2] Fix -Wformat-nonliteral Date: Thu, 06 Sep 2018 03:39:00 -0000 Message-Id: <20180906033855.13635-1-tom@tromey.com> X-SW-Source: 2018-09/txt/msg00082.txt.bz2 Simon pointed out today that my earlier patch to remove some custom rules from the Makefile had broken his build. We tracked this difference down to a bug in warning.m4: -Wformat-nonliteral was not being enabled for builds with gcc. This is why my build and the builders did not warn -- in fact the original patch was incorrect. This series fixes the problem using the diagnostic suppression code. This seems a bit better because now the warning avoidance is more targeted. The first patch here is from Simon (I wrote the commit text and the ChangeLog entry, in case they aren't up to par); but I'm committing it on his behalf as he is traveling. I'm checking this in. Tom