From patchwork Wed Aug 4 19:02:50 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: PATCH: Fix line number in miss-format-1.C testscase Date: Wed, 04 Aug 2010 09:02:50 -0000 From: Mark Mitchell X-Patchwork-Id: 60883 Message-Id: <20100804190250.724CB5664F4@henry1.codesourcery.com> To: 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