Message ID | 1478039344.2891.50.camel@caviumnetworks.com |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-return-74295-incoming=patchwork.ozlabs.org@sourceware.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3t7mCB00H5z9t3K for <incoming@patchwork.ozlabs.org>; Wed, 2 Nov 2016 09:30:29 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=JMEJr++b; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; q=dns; s=default; b=n/Y2nYQDYJ7fyuBUy8nWM7u8aHvmAYlAOfqOYHsoy21 uogOO4drr/9XUx4DM8cgltDJgfzl7YxitGk11pyfLvpSR2vq8s0OY4dd6y1SCmj0 HIOURNvMuvwlzDDYIx37plGjYJWlZZYTycl0xNZ6f0QcVVj/lxxwyAF78lTWFBsc = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; s=default; bh=FU7sukmgXmLHA9HuANGNnoDvqms=; b=JMEJr++brUw5rTu2K ZhxvQfW0Jf31qpzLKpJuZYCyjr8Ejf5Qtj99DIowXIvg7GJPRheMfq1lntmYu5s/ BTNJqHaiL9HWAr0UAUG15g+jeG2HLvwzynX/yOq9rhU+A2eBi9ZE613iSuyHS5s+ tN+jT4RWMXEi5zZdfzOT/Dbj2o= Received: (qmail 61282 invoked by alias); 1 Nov 2016 22:29:23 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: <libc-alpha.sourceware.org> List-Unsubscribe: <mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org> List-Subscribe: <mailto:libc-alpha-subscribe@sourceware.org> List-Archive: <http://sourceware.org/ml/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-help@sourceware.org>, <http://sourceware.org/ml/#faqs> Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 61174 invoked by uid 89); 1 Nov 2016 22:29:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Tested, 3211 X-HELO: NAM03-CO1-obe.outbound.protection.outlook.com Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Steve.Ellcey@cavium.com; Message-ID: <1478039344.2891.50.camel@caviumnetworks.com> Subject: Re: [PATCH] Fix warning from latest GCC in tst-printf.c From: Steve Ellcey <sellcey@caviumnetworks.com> To: Joseph Myers <joseph@codesourcery.com> CC: <libc-alpha@sourceware.org> Date: Tue, 1 Nov 2016 15:29:04 -0700 In-Reply-To: <alpine.DEB.2.20.1611011736580.21300@digraph.polyomino.org.uk> References: <1477003405.8523.21.camel@caviumnetworks.com> <1478020891.2891.45.camel@caviumnetworks.com> <alpine.DEB.2.20.1611011736580.21300@digraph.polyomino.org.uk> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: BY1PR0201CA0006.namprd02.prod.outlook.com (10.160.191.144) To BLUPR0701MB1060.namprd07.prod.outlook.com (10.160.35.147) X-MS-Office365-Filtering-Correlation-Id: 4c9df736-c7d6-4dcd-d039-08d402a67fb0 X-Microsoft-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BQk4JnntxmeSu8Z0HEwWvCJ+CthXfmGhaaZmjqiYjM5X48VuwMx8EpQIbeO0NCM5agTteRT0HnrMjqgGzVERt7VQhBd+rcmDLav0CrIDE57CAtlB3PB/lWD3fPxEBDfglG5fIJkB3m7c7YjfnONou0UA==; 20:h7HIabgoBOPDadtxdHn1Cs16S4VWXYRSopzMbPiYPLKclT2cPV84mceMbyE6l5uR0h+Z7gqWpRJZhc1q3VrwmQgaD0QqTWRQ0SQlhQEjEbFmBz9DdI3p8AuCYSKTk9RypBEmwM3XK5iFjxoVX6cgLtJSlLcokTEyYYcjv9VofgmzLeFHlCMwwmf/B+qGdIIoYbvJvM6emF4iV9XZTMr0mJV0OTcI4rxVR89weGzAiHgRYR9hZNo0txRb0jDpqlHhrpHcDwYfSQyNX1GxOWtwMSIVj8U+hHh36blpICZj6g2o+34tp7fpe/mEGnFijvqMsGQMJ5dJXHZSXb9NmGMFYUJfLXIl4oNO1LkoFaDeQHtQXAx4CPo2livt9Vf6MH7u5qf+GPWIuzmS24yHtzQMbURkG1WSDJnMoXFMRsuM5eANEw9DlGpuAjq5R5vwcm3uyLlG3Q2mLnOjPs0zvONKZvWvlRDOqy54gAU6A1Xol1zYlL20oc9JhTzR7Trb/k9xqZUA5hzSK0TnN9r2PYWnivXB3lT8kwdxqArPHIFYAPq4DmMyra4BjstN9MdOzICS4xkcicO7+WL4I/tdnANrXejzwjVPdg55x3jws4nfqzA= X-Microsoft-Antispam-PRVS: <BLUPR0701MB10606682FA888AAE72F366CBF5A10@BLUPR0701MB1060.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:BLUPR0701MB1060; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1060; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1060; 4:dloKVX2+dC49+VrlYrOhYG7i9SE2Hdl4h+Io1iOa+whxyBEwCY+Hstgxl1u/N2qEe1j+wFUtK3sD3Ge4qwa+W8ePOVFaDulP5Tn+QxNgGIgWvUmxm4KuDZxES6oNjNuovUcOE4Pmj+pAk7C9YBWrQ+utGyZSbKcGwemJ0rPzbm2qg/S88i7avG3rjtroJUpEqoXxe5FiPKCtu4Xt7Xhg036BL8ifQsn0BWg4iTPoYIFFZ8QMtQuBgAJRCi7wq9dDFFoGSLA3CHZ6jP2IsJFZmUoE9v0xd4AaeXVayetLFrWyAjari1bMaqOA+Sj5IU2YlS3EK2u0pSFykmb3GQiqdfBs7Q2WwrBrPlJA6bsORN8qVyKKBNWNs60EIgLQ314f81TVobbtTp0A/8BJzog0Kw== X-Forefront-PRVS: 01136D2D90 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(199003)(24454002)(377424004)(189002)(2950100002)(586003)(6916009)(97736004)(42882006)(7846002)(19580405001)(7736002)(3846002)(103116003)(2906002)(77096005)(5820100001)(50986999)(76176999)(4326007)(50226002)(2870700001)(305945005)(19580395003)(110136003)(92566002)(6116002)(69596002)(189998001)(47776003)(66066001)(106356001)(68736007)(101416001)(81166006)(105586002)(50466002)(5660300001)(33646002)(36756003)(53416004)(81156014)(42186005)(8676002)(6666003)(23676002)(99106002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1060; H:sellcey-lt.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTFVQUjA3MDFNQjEwNjA7MjM6dWZZcVNsZVdrUGxVejZlREZTL2FXc29v?= =?utf-8?B?VVFGTTllSE1WM2RRZUVnK0tpKzZqMDlKVkt0eHYzbjJ2M1BIZVR5TE9ZNjRC?= =?utf-8?B?UUhyOHRXY2VQb1R0Z3lJc2FORjVsd0xMemp2anh2a1dGNHN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ekdmS+u3T2xKYE/D7SPCAnwaEs2QwPlRSG7/arrsRYva1rmXm1+gTF/EBlizcdI0Md9BHPDhL; 5:GuAj4o8ab7FwrgZYdNQD3LTgxDvMrw9OmRc2B5voaNHy3zdo7mjr0zBInavihcxH8lNAkG6In2LJiZUk7lExdLGqKzSYzO7rLqDCTxA9KqxyHZ2QtmxbXrU+e5lyrBTQZSPuN7ylEANqOJHnKaKVlg==; 24:NYp6d5vtePAEinkbxOFwCm3cdF7XjUUQeGWG4ebjZybljepRhLhNHbOV4IoQ0G1kHXl9ii2hmttKuJ6ezN/S2yNngBeB+8GfsncjX7k3tZ8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1060; 7:TnPvk0Gw9KnCBzqd4ttryYOWysXbxR1d4lsqf4Rzicz+5PQCoJdT0aHEXS+CmuKRDpuDJWYuzmfKPZybMkjEhNalK9Uq+qrSHLYwAIn/S7r1gF0n0dsspv28jk+NJ5O7P5AW9kFRkyV4acU4udY0QcWBii1W59qZ1WD2x6bA+YHbf/beV37S8ivXVb/2WRcsmYGnhMz6HoYymQDhPm3CRg/qFjRM3gPSmT4P0U3EHuyhE3VkXkFwuGKxHYL3aO/2MU/8VOQ1OW2p3kh6IW/ttlFHymI0qZYCt9gyUWxgzjwfQ0OaodSI/golDn9fNfNNAPAE7L6lO4c2kpzmlT5pzLks/85bV6dsp6S7Y0fE/Cc= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2016 22:29:09.3401 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1060 |
On Tue, 1 Nov 2016, Steve Ellcey wrote: > On Tue, 2016-11-01 at 17:37 +0000, Joseph Myers wrote: > > On Tue, 1 Nov 2016, Steve Ellcey wrote: > > > > > > > > Ping. One of the snprintf statements in this test is using a %.999999u > > > format so it is obvious that the test wants to test formats that would > > > go beyond the limit of the snprintf buffer and so we should ignore the > > > warnings in this test. > > OK provided you've tested that this change works with older GCC that lack > > the new option (otherwise it would need to be conditional on the GCC > > version). > > I did forget to check it with an older GCC and it does fail with GCC > 5.4. Here is a new version with a conditional. Tested with GCC 5.4 > and GCC 7.0 (prerelease). > > Ok to checkin? OK.
diff --git a/stdio-common/tst-printf.c b/stdio-common/tst-printf.c index 2896b18..ffe7ac7 100644 --- a/stdio-common/tst-printf.c +++ b/stdio-common/tst-printf.c @@ -32,6 +32,11 @@ The compiler warnings are not useful here. */ DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wformat"); +#if __GNUC_PREREQ (7, 0) +/* Compiler warnings about format lengths should also be ignored. */ +DIAG_IGNORE_NEEDS_COMMENT (7.0, "-Wformat-length"); +#endif + static void rfg1 (void); static void rfg2 (void); static void rfg3 (void);