From patchwork Wed Aug 4 19:02:50 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Mitchell X-Patchwork-Id: 60883 Return-Path: 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]) by ozlabs.org (Postfix) with SMTP id 05912B6F06 for ; Thu, 5 Aug 2010 05:03:00 +1000 (EST) Received: (qmail 16758 invoked by alias); 4 Aug 2010 19:02:58 -0000 Received: (qmail 16670 invoked by uid 22791); 4 Aug 2010 19:02:57 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from gateway.codesourcery.com (HELO henry1.codesourcery.com) (38.113.113.105) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 Aug 2010 19:02:52 +0000 Received: by henry1.codesourcery.com (Postfix, from userid 515) id 724CB5664F4; Wed, 4 Aug 2010 12:02:50 -0700 (PDT) To: gcc-patches@gcc.gnu.org Subject: PATCH: Fix line number in miss-format-1.C testscase Reply-to: mark@codesourcery.com Message-Id: <20100804190250.724CB5664F4@henry1.codesourcery.com> Date: Wed, 4 Aug 2010 12:02:50 -0700 (PDT) From: mitchell@codesourcery.com (Mark Mitchell) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This patch corrects the line number for the "not declared" error in this test case for systems that don't have the declaration; it's emitted on line 26, where vscanf is used. Applied. --- Mark Mitchell CodeSourcery mark@codesourcery.com (650) 331-3385 x713 2010-08-04 Daniel Gutson * g++.dg/warn/miss-format-1.C: Update line number. Index: gcc/testsuite/g++.dg/warn/miss-format-1.C =================================================================== --- gcc/testsuite/g++.dg/warn/miss-format-1.C (revision 162871) +++ gcc/testsuite/g++.dg/warn/miss-format-1.C (working copy) @@ -4,7 +4,7 @@ /* { dg-options "-Wmissing-format-attribute" } */ /* { dg-options "-Wmissing-format-attribute -Wno-abi" { target arm_eabi } } */ /* VxWorks does not provide vscanf, either in kernel or RTP mode. */ -/* { dg-error "not declared" "" { target *-*-solaris2.8 *-*-vxworks* alpha*-dec-osf5* } 25 } */ +/* { dg-error "not declared" "" { target *-*-solaris2.8 *-*-vxworks* alpha*-dec-osf5* } 26 } */ #include #include